-->
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: Re: How do I override a column name with xml mapping?
PostPosted: Thu Feb 24, 2011 3:48 pm 
Newbie

Joined: Fri Feb 04, 2011 9:49 pm
Posts: 11
I know about the @OverrideAnnotation to set a new column name in JPA, but how do you do this in xml? I see an <attribute-override> mentioned in viewtopic.php?t=982330, but can't find it in the DTD.

My problem is that I have a join table which joins object A to object C, the join table containing a property of object C; and also a join table which joins object B to object C, which contains the same property of object C, different column name. I need to 1) have it look for the property in the join table, not in the table defined for object C, and 2) look for the property in 2 different join tables.

Lost in one-to-many's, join's, join-table's, etc....


Top
 Profile  
 
 Post subject: Re: How do I override a column name with xml mapping?
PostPosted: Sun Mar 06, 2011 3:23 pm 
Newbie

Joined: Fri Feb 04, 2011 9:49 pm
Posts: 11
Giving up on this.


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.