Why would one want to have 2 key-collums? Does that make any sense?

Leonardo R Nunes schrieb:
Does someone know how to create this composite key xdoclet ?

Regards,
Leonardo.


How can I create a XDoclet for the following part of my .hbm ?
   ...
   <bag
       name="foo"
       lazy="true"
       inverse="true"
        cascade="none"
   >
       <key>
           <column name="PART1_ID" />
           <column name="PART2_ID" />
       </key>
       <one-to-many
           class="FooClass"
       />
   </bag>
   ...

I tried the following xdoclet tags, but it didn't work:

/**
    *            @hibernate.bag
    *             lazy="true"
    *             inverse="true"
    *             cascade="none"
    *            @hibernate.collection-key
    *             column="PART1_ID"
    *            @hibernate.collection-key
    *             column="PART2_ID"
    *            @hibernate.collection-one-to-many
    *             class="FooClass"
    *
    */
   public List getFoo() {
     ...







-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to