Check your spellings. Xdoclet is not NLP enabled :-) It can't guess that
your 'collections-one-to-many' has to be really just
'collection-one-to-many' and 'collections-key' has to be
'collection-key'

Alex.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Timothy
Reaves
Sent: Monday, September 13, 2004 10:47 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Problems with Hibernate code...


        Hello all.  I'm using Hibernate 2.1.6, XDoclet 1.2, and maven
1.0.  My 
generated mapping files look fine, except the set tag.  I have this 
code in my Java class:
     /**
      * @hibernate.set
      *                 role="ownes"
      * @hibernate.collections-one-to-many
      *                 class="com.foo.inventory.model.Item"
      * @hibernate.collections-key
      *                 column="owner"
      */


and this is what gets generated:
         <set
             name="owns"
             lazy="false"
             inverse="false"
             cascade="none"
             sort="unsorted"
         >

         </set>

so at a minimum, the following two lines are missing:
                        <key column="GROUPID"/>
                        <element column="NAME" type="string"/>

Any ideas?



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to