Skip to content

Support for inheritance in DynamoDbMapper #832

@sowdri

Description

@sowdri

I'm using dynamodb and the java class I'm storing has the following structure:

@DynamoDBTable(tableName="Animals")
class abstract Animal {

  @DynamoDBHashKey(attributeName = "Id")
  @DynamoDBAutoGeneratedKey
  String id;

}

class Dog extends Animal {
  // ... dog props
}

class Cat extends Animal {
  // ... cat props
}

I would like to save instances of Animal class to the db and retrieve them as well. Ready to supply meta information similar to @JsonTypeInfo and the likes.

Looks like this is not supported right now.

http://stackoverflow.com/questions/39221525/dynamodbmapper-support-for-inheritance

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions