-->
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.  [ 1 post ] 
Author Message
 Post subject: Usertype with multiple columns within an embedded component
PostPosted: Thu Mar 20, 2014 10:43 am 
Newbie

Joined: Wed May 26, 2010 1:51 pm
Posts: 3
Hello everybody,

I'm in a situation where I needed to create an UserType that have 2 columns. So far so good. Every entity needs to map this type with a @Columns specifying column names.
But one of my entities have an embedded component which, in turn, have 2 fields of this type.
The intuitive solution is to map the entity with @AttributeOverrides with the columns specifications on the component field. This solution doesn't work for me. I've searched for this problem and haven't found nobody with this kind of trouble. I'm using hibernate 3.6.9.

Another solution I know that would resolve this is to retire the UserType kind of mapping and pass to use @Embbedable. But this solution will require more changes.

Does someone know a solution to this?

[]s,
Victor Dolirio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.