-->
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: Can I extend the class for a table with more class variables
PostPosted: Fri Dec 07, 2007 10:36 pm 
Newbie

Joined: Fri Dec 07, 2007 10:30 pm
Posts: 1
Hi,

Can I extend a class for a table with more variables which are not mapped to table column? and use hibernate to manage the persistent for this class?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 08, 2007 1:19 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Try to give the variable properties in hbm.xml, if you dont want to update or insert set the property of the variable to false for both update and insert.

If you leave the field in the mapping, selection of the unmapped field of the DB cannot be retrieved using hibernate.

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


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.