-->
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: how to specify a property as a non database column
PostPosted: Tue Feb 05, 2013 1:36 am 
Newbie

Joined: Wed Jan 23, 2013 7:00 am
Posts: 8
hi,

i have created properties, and i dont want to make some properties as database columns. Iam not using any annotations. Is there any way to do that by using only config file


Top
 Profile  
 
 Post subject: Re: how to specify a property as a non database column
PostPosted: Fri Feb 08, 2013 3:37 am 
Beginner
Beginner

Joined: Wed Feb 06, 2013 2:43 am
Posts: 46
Just add a transient variable in your bean class for the table as in

transient int xyz;
//getters
//setters

and dont map in it your hbm file.

And its done easily :)

_________________
Thanks,
Ajit Singh
ajits@mindfiresolutions.com
www.mindfiresolutions.com


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.