|Natural identifier [message #1717307]
||Fri, 11 December 2015 14:09
| Dennis Melzer
Registered: July 2009
in Hibernate I can create a unique key using @NaturalId on several properties of the entity. Is there a EclipseLink equivalent annotation?
The @UniqueConstraint ist not enough because, im looking for a possibilty to check if the entity already exists for this natual id or unique constraints.
My expectation is a methode like in hibernate session.byNaturalId(class) to check if the entity is already exists.
How do this with EclipseLink (generic)?
Powered by FUDForum
. Page generated in 0.01834 seconds