| Author |
Hibernate :managing Index column in save ( )
|
Laurent Salse
Greenhorn
Joined: Nov 07, 2004
Posts: 14
|
|
Dear all, I am still quite "green horned" in hibernate and I am facing an issue I am sure is a classical one ... For a <one-to-many> relationship between 2 Objects, Hibernate requires an index column in the table of the child elements. As explained in the API documentation : �For lists, this column contains sequential integers numbered from zero. Make sure that your index really starts from zero if you have to deal with legacy data�. Does someone know if Hibernate3 implements a mechanism to automatically generate / determine the index value when saving the child Object into the database_table. If yes, howtodo ? Big thanks by advance for any hints. cheers, Laurent
|
 |
 |
|
|
subject: Hibernate :managing Index column in save ( )
|
|
|