| Author |
[Hibernate] Problem with @TableGenerator
|
Daniel Suter
Greenhorn
Joined: Jul 31, 2012
Posts: 2
|
|
Hi,
I tried to the TableGenerator annotation from hibernate to generate ids. However it does not seem to work.
My entity:
Hibernate will not create the table "custom_sequences", when creating the schema. It simply sets the id column to auto_increment.
perisistence.xml
Testcode:
|
 |
Bill Gorder
Bartender
Joined: Mar 07, 2010
Posts: 1282
|
|
make sure all of your imports are coming out of javax.persistence.
also change to
See if that makes a difference for you.
|
[How To Ask Questions][Read before you PM me]
|
 |
 |
|
|
subject: [Hibernate] Problem with @TableGenerator
|
|
|