-->
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.  [ 10 posts ] 
Author Message
 Post subject: Composite element in Annotation
PostPosted: Tue Dec 06, 2005 10:47 pm 
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  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 1:54 pm 
Hibernate Team
Hibernate Team

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

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 12:03 pm 
Newbie

Joined: Mon Apr 18, 2005 10:37 am
Posts: 8
Does this work now? If not, is there some plan when to implement this?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 15, 2006 9:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes, check the doc

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 6:49 am 
Newbie

Joined: Mon Apr 18, 2005 10:37 am
Posts: 8
Excuse me, but I am searching http://www.hibernate.org/hib_docs/annot ... ml_single/ thru and thru but I am not able to find it...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 5:14 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Ah sorry, I read too fast.
This is not possible. But will be when Hibernate 3.2.1 and a subsequent version of Hibernate Annotations is released.

Basically the bug is fixed but it breaks compatibility

_________________
Emmanuel


Top
 Profile  
 
 Post subject: How it can be done right now?
PostPosted: Thu Mar 05, 2009 5:01 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
Any update on this topic? I run into the same situation and haven't found a solution yet.


Top
 Profile  
 
 Post subject: Re: Composite element in Annotation
PostPosted: Thu Jul 23, 2009 3:37 am 
Beginner
Beginner

Joined: Mon Sep 26, 2005 8:22 am
Posts: 24
same here.

Any update?


Top
 Profile  
 
 Post subject: Re: Composite element in Annotation
PostPosted: Wed Mar 10, 2010 6:19 am 
Newbie

Joined: Thu Feb 25, 2010 7:20 am
Posts: 4
I'm on Hibernate Core 3.5.0.CR1, which includes Hibernate Annotations 3.4.0 GA.
This feature still seems not addressed yet.


Top
 Profile  
 
 Post subject: Re: Composite element in Annotation
PostPosted: Wed Jul 11, 2012 7:21 am 
Newbie

Joined: Wed Jul 11, 2012 7:18 am
Posts: 1
Any news?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 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.