Hi! I've a question.....
I've mapping some tables of a database (mysql) using Hibernate Annotations.
I mapped the primary key using the embedded annotation, so i've another class that implements the idetifier.
On the database, primary key are setted on autoincrement, so, how can explicit this fact to the class that maps the table?
I know that, using normal annotations @Id, i can specify this fact adding the property (generate=GeneratorType.AUTO): there's something like this property for embedded id?
Thanks!!
|