-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Composite element with Annotation
PostPosted: Wed Dec 07, 2005 11:10 am 
Newbie

Joined: Thu Nov 24, 2005 3:31 pm
Posts: 6
Hi,

I'm trying to map a many-to-many collection using a set of components. In an xml mapping document, this would look as follows:

<set name="items" table="category_items">
<key column="category_id"/>
<composite-element class="CategorizedItem">
<parent name="category"/>
<many-to-one name="item" class="Item" column="item_id" not-null="true"/>
<property name="dateAdded" column="date_added" not-null="true"/>
</composite-element>
</set>


However, I'm using annotations and wonder whether the same is possible. I can only find how to map a single component, not how to map a set of components for a many-to-many relation.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.