[jboss-user] [EJB 3.0] - Re: List of enum types is possible?
copyrightwitness
do-not-reply at jboss.com
Wed Oct 18 12:01:02 EDT 2006
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
More information about the jboss-user
mailing list