[ http://jira.andromda.org/browse/HIB-160?page=history ]

Alexander Rüegg updated HIB-160:
--------------------------------

    Attachment: patch.txt

The attached patch resolves this in my case. But it is not tested with other 
collection types!

> 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: Carlos Cuenca
>     Priority: Minor
>  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://ads.osdn.com/?ad_idv37&alloc_id865&op=click

Reply via email to