-->
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: Don't want a member mapped in the class
PostPosted: Sun May 24, 2009 6:47 am 
Newbie

Joined: Sat May 23, 2009 7:50 pm
Posts: 4
hi,
i want to map a class to a table but the class has an extra member. When i try to insert a row, hibernate uses that member as a column of the table and i get error. Does it have to overlap with the table or how can i use an unmapped member in the class?

thanks..


Top
 Profile  
 
 Post subject: Re: Don't want a member mapped in the class
PostPosted: Sun May 24, 2009 9:13 am 
Beginner
Beginner

Joined: Tue Aug 26, 2003 2:46 pm
Posts: 45
Location: Saskatoon SK Canada
The @Transient annotation should give you what you're looking for. Check out the Hibernate Annotations documentation.

_________________
Maury


Top
 Profile  
 
 Post subject: Re: Don't want a member mapped in the class
PostPosted: Sun May 24, 2009 12:46 pm 
Newbie

Joined: Sat May 23, 2009 7:50 pm
Posts: 4
thanks, it works!


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.