[ http://jira.andromda.org/browse/HIB-160?page=history ] Wouter Zoons closed HIB-160: ----------------------------
Resolution: Duplicate Fix Version: 3.2-RC1 > Not validating *.hbm.xml when using @andromda.hibernate.collection.type=list > ---------------------------------------------------------------------------- > > Key: HIB-160 > URL: http://jira.andromda.org/browse/HIB-160 > Project: Hibernate Cartridge > Type: Bug > Reporter: Alexander Rüegg > Assignee: Wouter Zoons > Priority: Minor > Fix For: 3.2-RC1 > Attachments: patch.txt > > The generated hbm.xml mapping file is not valid when using the tagged value > @andromda.hibernate.collection.type=list on an association between two > entities. > The mapping file must include an index element after the key element: > <class name="ClassAImpl" table="ClassA" dynamic-insert="false" > dynamic-update="false"> > <id name="id" type="java.lang.Long" unsaved-value="null"> > <column name="ID" sql-type="BIGINT"/> > <generator class="native"></generator> > </id> > <list name="myList" lazy="false" fetch="select" inverse="false" > cascade="delete"> > <key foreign-key="ClassB_ClassA_FKC"> > <column name="ClassA_FK" sql-type="BIGINT"/> > </key> > <list-index column="ClassA_myList_IDX"/> > <one-to-many class="ClassBImpl"/> > </list> > </class> ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642