-->
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.  [ 5 posts ] 
Author Message
 Post subject: Defining Composite ID with many-to-one using Annotations ?
PostPosted: Thu Jul 07, 2005 12:20 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2004 8:14 am
Posts: 20
Location: Mainz, Germany
Hi,

I know it's evil but is a mapping like:

Code:
<composite-id
            name="pk"
            class="local.PKClass"
        >
              <key-many-to-one
                  name="key1"
                  class="local.entity2"
                  column="TYPE"
              />
               <key-property
                  name="key2"
                  type="java.lang.Integer"
                  column="NO"
          />
</composite-id>


possible with EJB3.0 Annotations ?

I tried @Embedded, @EmbeddedID, @IdClass but it didn't work.

Thanks,

Matthias


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 10, 2005 12:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is currently not supported. Sorry

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Supported yet?
PostPosted: Mon Mar 27, 2006 2:39 pm 
Newbie

Joined: Wed Feb 23, 2005 11:57 am
Posts: 15
Is this still unsupported?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 7:54 am 
Beginner
Beginner

Joined: Wed Sep 24, 2003 11:16 am
Posts: 20
Location: Turkey
I'm also waiting on this. Take a look at:
http://opensource.atlassian.com/project ... wse/ANN-15
http://opensource.atlassian.com/project ... wse/ANN-16
http://opensource.atlassian.com/project ... se/ANN-292

_________________
may the source be with you!


Top
 Profile  
 
 Post subject: Re: Supported yet?
PostPosted: Fri Mar 31, 2006 4:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
gabrielh wrote:
Is this still unsupported?

The latest version support this, but there is a small bug regarding pk generation ANN-292, which is fixed in SVN head

_________________
Emmanuel


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