-->
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.  [ 1 post ] 
Author Message
 Post subject: AutoFlush events?
PostPosted: Tue Jan 03, 2006 7:45 pm 
Newbie

Joined: Tue Jan 03, 2006 7:23 pm
Posts: 3
I have a set of reference data. These classes are mapped as mutable=false.

I perform a simple query which is "from Product"; IE getting everything.

I then get an error in my application because Hibernate tries to insert some objects that have nulls for non-nullable fields. It does this because it tries to insert them before I am ready to have them inserted; the insert is triggered by an autoflush.

After reading, I found that autoflush is sometimes triggered if "there are changes held in memory that would affect the results of the query". However, there should not be any objects in memory that belong to this table that are modified. Is there any way I can get Hibernate to tell me what it thinks is different between what is in memory and what is in the database?

Hibernate version: 3.0.5


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.