-->
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: problemi inupdate query
PostPosted: Wed Sep 23, 2009 5:30 am 
Newbie

Joined: Thu Aug 13, 2009 6:07 am
Posts: 5
Hi All,
I am facing a problem in hibernate update query the case
In my table there are 5 fields
id - not null - pk
name - not null
class - not null
created_by - not null
updated_by - not null

when i try to update a record it gives the null pointer exception in created by field. If I update my database and created_by field is allows null then at the time of updation created_by field will be null.
I dont want to update created_by.
please help me.


Top
 Profile  
 
 Post subject: Re: problemi inupdate query
PostPosted: Wed Sep 23, 2009 6:07 am 
Beginner
Beginner

Joined: Wed Jun 17, 2009 9:03 pm
Posts: 31
Location: mumbai
Hi

Check if something like this works in your mapping.

Code:
<property name="created_by" update="false" column="xyz"/>


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.