Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » is it possible to create a dynamic persistent entity with composite primary key ?(is it possible to create a dynamic persistent entity with composite primary key ?)
is it possible to create a dynamic persistent entity with composite primary key ? [message #784368] Fri, 27 January 2012 12:26 Go to next message
Nabeel Ahmed is currently offline Nabeel AhmedFriend
Messages: 20
Registered: January 2012
Junior Member
No Message Body
Re: is it possible to create a dynamic persistent entity with composite primary key ? [message #786490 is a reply to message #784368] Mon, 30 January 2012 13:51 Go to previous messageGo to next message
Nabeel Ahmed is currently offline Nabeel AhmedFriend
Messages: 20
Registered: January 2012
Junior Member
is there any help?
Re: is it possible to create a dynamic persistent entity with composite primary key ? [message #786580 is a reply to message #786490] Mon, 30 January 2012 15:54 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Yes, use setPrimaryKeyFields()


James : Wiki : Book : Blog : Twitter
Re: is it possible to create a dynamic persistent entity with composite primary key ? [message #786586 is a reply to message #786490] Mon, 30 January 2012 15:54 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Yes, use setPrimaryKeyFields()

--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/


James : Wiki : Book : Blog : Twitter
Previous Topic:ReadObjectQuery with setSelectionId=null has undeterministic behavior
Next Topic:update in new transaction hangs program
Goto Forum:
  


Current Time: Sun Dec 08 07:11:05 GMT 2024

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

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

Back to the top