DynamoDbMappable

annotation class DynamoDbMappable(val converter: KClass<out ItemConverter<*>> = AutoGeneratedConverter::class)

Specifies that this class/interface can be mapped to/from a set of DynamoDB attributes (an item). An ItemConverter will be generated for the annotated type, allowing it to be used as a nested attribute within another DynamoDbMappable or DynamoDbItem type. Unlike DynamoDbItem, a type annotated only with DynamoDbMappable does not describe a table item and therefore does not require (or permit) primary key, TTL, or counter annotations.

DynamoDbItem is itself a DynamoDbMappable type, so any DynamoDbItem may also be nested within another mappable type without additional annotations.

Parameters

converter

The item converter to be used for converting this class/interface. If not set, one will be automatically generated.

Properties

Link copied to clipboard