how to add id field to table holding just a list of Strings?
This is my hbm.xml
<list name="versionList" table="versionList" cascade="all" >
<key column="parentComponent_id" />
<list-index column="parentComponentOrder" />
<element column="version" type="java.lang.String" />
</list>
this creates versionList table with three columns: parentComponent_id , parentComponentOrder and version.
Apart from this I want to add unique id generator field to the table.
Hibernate 1 had some feature as specified in
http://www.xylax.net/hibernate/toplevel.html
How to do in hibernate 3?
Thanks,
Hari Sujathan