-->
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: mapped attribute
PostPosted: Mon Jun 14, 2010 3:37 pm 
Newbie

Joined: Wed Jun 09, 2010 5:08 pm
Posts: 3
Hello.

Let's say i have a database table person : id | first_name | last_name

I have a pojo Person : Integer id; String firstName; String lastName

Does anyone knows how to annotate a field that does not exist in database that is put in this pojo. Let's say that in this pojo i need to an attribute Date calculatedDate. How to annotate this field for hibernate to work?

Thx.


Top
 Profile  
 
 Post subject: Re: mapped attribute
PostPosted: Tue Jun 15, 2010 9:37 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
@Transient


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.