+1 that Hibernate should really support this simple feature. Then @Entitly in our application contain many immutable value object class which are mapped using @Embeddable .
Currently , we use Criteria API to pragmatically construct the isNull() and eq() Restrictions on every properties in the @Embeddable class.
|