-->
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: Update all columns to null
PostPosted: Sat Aug 14, 2004 8:10 pm 
Newbie

Joined: Fri Jul 23, 2004 12:13 am
Posts: 7
I have this application using Hibernate with mySQL. I had a case where many records, (but not all) from one table had all the columns set to null.

mySQL logging shows many of the following...

update table version=12 column1=null,column2=null

every column nullable was nulled out

I have inherited this code and have not seen anything that could directly do this.

Is there anything using hibernate that could do this?

This is a long shot, but this happen once at a customer site and I need to prevent this in the future.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 15, 2004 2:40 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Please make sure you understand the
rules of this forum before posting!

We can only help you if you read and follow this document!

Don't crosspost!
Don't bump up your questions when no one answers!
Don't start your question with "a bug in Hibernate"! When asking questions, give at least:
the Hibernate version
your mapping documents
the Java code between sessionFactory.openSession() and session.close()
the full stack trace of any exception that occurs
the name and version of the database you are using
a debug level Hibernate log excerpt is also appreciated

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.