-->
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: Read only attributes
PostPosted: Mon May 22, 2006 10:35 am 
Newbie

Joined: Tue Jan 24, 2006 12:40 pm
Posts: 7
Is there any way to designate in the configuration that once an attribute has been set on a POJO in the database, that it cannot be changed? For example if I have a User object and it has a ID of 1 and a UserId of "testuser" that once UserId is set to "testuser" it cannot be changed.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 11:30 am 
Regular
Regular

Joined: Thu Sep 22, 2005 1:53 pm
Posts: 88
Location: Rio de Janeiro
try to put update="false" in the property of your mapping document


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.