-->
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: Problem with JPA Annotation @Transient
PostPosted: Thu Aug 11, 2011 8:27 am 
Newbie

Joined: Thu Aug 11, 2011 8:25 am
Posts: 1
I'm trying to mapping a data base from "Drupal" with Hibernate and JPA to make a Java layer for work with the data.

In a class, I need to add an attribute, called "rank" to use it later, but that attribute doesn't exist in the database, so I put @Transient annotation...

I use the set method to put a value on it, but later, the values are wrong (I don't understand why) So... there is a way to make that without modifying the data base?


Top
 Profile  
 
 Post subject: Re: Problem with JPA Annotation @Transient
PostPosted: Tue Aug 16, 2011 3:16 am 
Newbie

Joined: Wed Aug 10, 2011 11:24 pm
Posts: 14
for ur attribute make as a final .....thn it will not persist for your database....

_________________
With Best Regards
SreenivaS
Save trees Save life


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.