derjust / spring-data-dynamodb

This module deals with enhanced support for a data access layer built on AWS DynamoDB.
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
403 stars 141 forks source link

How could we create Immutable entities? #261

Open avanathan opened 5 years ago

avanathan commented 5 years ago

Sorry this is a question & not an Issue.

Is there a way to create an Entity which is read-only? This will be very useful for creating multiple projections without diluting code with conditions.

For eg: @Entity(mutable=false) - Seems like hibernate specific annotation (deprecated)

OR

@Immutable - Hibernate specific

OR

any other way to achieve this.