-->
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: ignore a column in
PostPosted: Mon Oct 22, 2007 9:38 am 
Newbie

Joined: Mon Oct 22, 2007 9:26 am
Posts: 2
Hi,
I have a Java object with a number of getters, each has a @Column annotation for column mapping. Is it possible to have a getter which do not map to any column in the database? Something like @NotColumn or something before a getter method :).

I'm getting:
Code:
org.hibernate.PropertyNotFoundException: Could not find a setter for property desc in class [...]


hibernate version: 3.2 GA.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 22, 2007 11:29 am 
Expert
Expert

Joined: Sat Jan 17, 2004 2:57 pm
Posts: 329
Location: In the basement in my underwear
Try the @Transient annotation.

_________________
Some people are like Slinkies - not really good for anything, but you still can't help but smile when you see one tumble down the stairs.


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.