-->
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.  [ 4 posts ] 
Author Message
 Post subject: identity column insert fails
PostPosted: Tue May 24, 2005 3:22 am 
I have an identity column in the class for which I dont want to have a setter value but only i need to get that value back.
of the identity value.If I dont have that value in the hbm file it inserts the value in to the column but I'll not be able to fetch that value.
please provide me your thoughts on this.


Top
  
 
 Post subject:
PostPosted: Tue May 24, 2005 3:26 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Use access="nosetter.<something>", so that the property is set using the field directly, but accessed through the getter.


Top
 Profile  
 
 Post subject: identity column insert fails
PostPosted: Tue May 24, 2005 6:03 am 
Newbie

Joined: Tue May 24, 2005 3:16 am
Posts: 1
where will I use this access="nosetter.<something>" is it in the class file or .hbm file can you give me some small example.
thanks in advance for your speedy reply.please advice.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 8:13 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Use it in the <id> tag, for example <id name="ID" access="nosetter.camelcase">...</id>.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.