Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Natural identifier
Natural identifier [message #1717307] Fri, 11 December 2015 14:09
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 244
Registered: July 2009
Senior Member

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)?


Previous Topic:EclipseLink less than clause doesn't work correctly
Next Topic:MongoDB and multi-tenancy
Goto Forum:

Current Time: Thu Mar 04 13:29:02 GMT 2021

Powered by FUDForum. Page generated in 0.01834 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top