-->
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.  [ 7 posts ] 
Author Message
 Post subject: target entity for embedded component?
PostPosted: Mon Oct 24, 2005 2:23 pm 
Newbie

Joined: Mon Oct 24, 2005 2:19 pm
Posts: 10
Is there a way to specify the target entity of an embedded component?
Code:
interface Address {...};

@Embeddable(access = AccessType.FIELD)
class AddressImpl implements Address {...}

@Entity(access = AccessType.FIELD)
@Table(name = "customers")
class Customer {
   @Embedded
   private Address _invoiceAddress; //##### <- Can't.
}


Can I somehow avoid using AddressImpl in the _invoiceAddress declaration?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 1:58 am 
Newbie

Joined: Tue Sep 13, 2005 10:57 pm
Posts: 10
I checkout spec, no targetEntity for @Embedded.
may there have 2 wat for:
1,use onetoone
2,take advice to jcp 220 committee


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 5:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Does it work fine on hbm xml files?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 20, 2006 2:08 pm 
Newbie

Joined: Thu Jan 13, 2005 6:24 pm
Posts: 12
In the hbm.xml file you can specify a class by doing class="AddressImpl"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 5:07 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
open a JIRA issue for a @Target annotation

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 5:52 pm 
Newbie

Joined: Thu Jan 13, 2005 6:24 pm
Posts: 12
I had previously opened this issue. Should I open another one?

http://opensource.atlassian.com/project ... se/ANN-395


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 8:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
nope it's fine

_________________
Emmanuel


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