-->
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: Only overriding Embeddable's simple properties possible?
PostPosted: Mon Dec 18, 2006 1:41 pm 
Newbie

Joined: Thu Jan 06, 2005 8:05 am
Posts: 13
I think I found the way to postulate my question better than in my last post, so here it goes ...

Can we override only simple properties in embeddables via annotations, or somehow overriding element collection properties can be achieved too somehow ?

Since properties of collection of value objects such as List of Strings (annotated by @CollectionOfElements) require separate table, that means overriding would need to allow some way of specifying name of table where this collection will be stored, thus overriding @JoinTable "name" value inside Embeddable. Same as overriding some simple property via @AttributeOverride allows changing name of column specified by @Column inside Embeddable. But in case of collection properties, whole table name should be allowed to be specified in overriding process.

As I can see by reading the annotations docs, there is no something like "tableName" inside overriding annotations (@AttributeOverride or @AssociationOverride).

Regards,
Vjeran


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 2:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
@AttributeOverride
@AssociationOverride
can do that, but it does not work for collections

_________________
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.