-->
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: Embedded Objects reuse with missing field/column
PostPosted: Wed Oct 20, 2010 11:32 am 
Newbie

Joined: Wed Oct 20, 2010 11:22 am
Posts: 14
Sorry, I am pretty new to Hibernate/JPA!

I have created an embedded object 'Address' which has 'addr1' and 'addr2' fields.
In most Entities/tables, both columns/fields are defined. But I also have a few tables that only
define one address field ('addr1').

Is there a way to override the mapping/definition to not use the 'addr2' field in the embedded object? I have looked and couldn't find anything. Since the class is "tagged" as an embedded object, the 'addr2' field that is not on the table causes an error (in Eclipse - gives an error that column does not exist on table).

Any help would be great!

Thanks


Top
 Profile  
 
 Post subject: Re: Embedded Objects reuse with missing field/column
PostPosted: Tue Jan 03, 2012 1:34 pm 
Newbie

Joined: Tue Jan 03, 2012 1:32 pm
Posts: 1
Hi,

I am having the same issue as you mentioned above. It would be great if you can tell me how you solved the problem.

Thanks.


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.