-->
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.  [ 3 posts ] 
Author Message
 Post subject: How do I override a column name with xml mapping?
PostPosted: Tue Feb 22, 2011 7:56 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: Wed Feb 23, 2011 5:39 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Have you tried the Hibernate User Forum? This forum is for Hibernate Search + Validator


Top
 Profile  
 
 Post subject: Re: How do I override a column name with xml mapping?
PostPosted: Thu Feb 24, 2011 3:47 pm 
Newbie

Joined: Fri Feb 04, 2011 9:49 pm
Posts: 11
Christ, I just hit "new topic," I've never even been to the search/validator forums.... Thanks for letting me know!


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