Open avanathan opened 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)
@Entity(mutable=false)
OR
@Immutable - Hibernate specific
@Immutable
any other way to achieve this.
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 specificOR
any other way to achieve this.