-->
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.  [ 2 posts ] 
Author Message
 Post subject: Set of components possible using annotations?
PostPosted: Fri Jul 01, 2005 10:48 am 
Newbie

Joined: Tue May 31, 2005 8:57 am
Posts: 10
Hibernate version: 3.0.5, Hibernate Annotations: 3.0 beta2 preview

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:
Code:
<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.

Regards,
Ronald Wildenberg.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 3:43 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
not yet.

_________________
Emmanuel


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

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.