Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes @TABLEGENERATOR  doesn t work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "@TABLEGENERATOR  doesn t work" Watch "@TABLEGENERATOR  doesn t work" New topic
Author

@TABLEGENERATOR doesn t work

christophe lassere
Greenhorn

Joined: Apr 26, 2011
Posts: 7

hi,

i have a problem with unique id declaration based on annotation @TableGenerator ,

i try to use name,table,pkcolumnname,valuecolumnname,pkcolumnname,initialValue,allocationsize

to be completely autonomous but it seems that at each test ,the JVM is based on SEQUENCE table instead of my table i have defined.

i have to say that i m in eclipse but in JAVA SE configuration.entity simple creation works correctly when sequence table is created.

has everybody a correct declaration with the 3 annotations @Id,@tableGenerator and @generatedValue?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @TABLEGENERATOR doesn t work
 
Similar Threads
Creating an JPA in eclipse
Doubt on TableGenerator
Query on various properties wrt auto table generator
Hiberante annotations
TableGenerator