Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Multiple TableGenerators per Entity(Multiple TableGenerators per Entity)
Multiple TableGenerators per Entity [message #642266] Tue, 30 November 2010 11:12 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: November 2010
Junior Member
Is there a way to create multiple Generators per Entity? I have a need for two in one entity but can not get both to fire (only the second one is executed). I have gotten around this by executing a named query in a @PrePersist method but this seems 'dirty'. Any help will be greatly appreciated.
Re: Multiple TableGenerators per Entity [message #642786 is a reply to message #642266] Thu, 02 December 2010 11:54 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Only one generated value is supported.

The event is your best workaround, please log an enhancement to have support for multiple added.


James : Wiki : Book : Blog : Twitter
Previous Topic:StoredProcedureCall RETURN nested table/array
Next Topic:Shared Cache not working when using eclipselink with Spring
Goto Forum:
  


Current Time: Thu Jul 31 05:27:31 EDT 2014

Powered by FUDForum. Page generated in 0.01857 seconds