-->
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: Mapping a virtual feild to a database column
PostPosted: Tue Sep 04, 2007 3:16 pm 
Newbie

Joined: Tue Sep 04, 2007 3:09 pm
Posts: 2
Hi,

I need to map a sort of a virtual field to a database column. e.g. my class has 3 fields that go to 3 columns in a table. However, there is a 4th column who's value is composed from the three fields in the class. However, I cannot change the class of extend from it.

I was trying to work with PropertyAccsors. However, even with such a customization, Hibernate insists that the property name configured is an actual field in the Class, even though it never accesses it directly.

Could someone please help me with this.

Best Regards,

Danish Mujeeb


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 7:11 pm 
Newbie

Joined: Tue Sep 04, 2007 2:21 pm
Posts: 14
did you try access="noop" in the property mapping?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 7:15 pm 
Newbie

Joined: Tue Sep 04, 2007 3:09 pm
Posts: 2
Hi,

Yes, I just tried it. It still insists that the field should be there in the Object. Besides, how will I configure my custom PropertyAccessor if I put access='noop'?

Regards,

Danish


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.