I don't know about the annotations but I am currently trying this...

     * @hibernate.list
     * cascade="all-delete-orphan"
     * lazy="true"
     * table="Options"
     * embed-xml="true"
     * @hibernate.list-index
     * column="listIndex"
     * @hibernate.key
     * column="ParentId"
     * @hibernate.element
     * ype="MyEnumUserType"
     * column="myEnum"

which produced the following out of XDocLet:


<list table="Options" lazy="true" cascade="all-delete-orphan" 
name="enumProperty" embed-xml="true">
      
      <list-index column="listIndex"/>
      
    

The trick appears to be using 'element' rather than one-to-many or some such 
mapping. It certainly produces the correct DDL.

Hope this helps,
Barry

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979131#3979131

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979131
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to