The moose likes Other Application Frameworks and the fly likes Hibernate :managing Index column in save ( ) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Hibernate :managing Index column in save ( )" Watch "Hibernate :managing Index column in save ( )" New topic
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 ( )
 
Threads others viewed
1-to-M mapping confusion
hibernate search problem w/ entity inheritance
List that contains null values
could not initialize a collection+ [Microsoft][ODBC SQL Server Driver]Invalid Descrip
switch from set to list, many-to-many