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: ignoring persistent instance message ???
PostPosted: Thu Jun 26, 2008 2:39 pm 
Regular
Regular

Joined: Tue Oct 16, 2007 9:45 am
Posts: 93
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.0


Debug level Hibernate log excerpt:

2008-06-26 13:00:32,999 [4] DEBUG NHibernate.Event.Default.AbstractSaveEventListener - persistent instance of: Core.billing.Invoice
2008-06-26 13:00:32,999 [4] DEBUG NHibernate.Event.Default.DefaultSaveOrUpdateEventListener - ignoring persistent instance
2008-06-26 13:00:32,999 [4] DEBUG NHibernate.Event.Default.DefaultSaveOrUpdateEventListener - object already associated with session: [Core.billing.Invoice#1]
2008-06-26 13:01:12,309 [4] DEBUG NHibernate.Connection.DriverConnectionProvider - Obtaining IDbConnection from Driver

I have a problem where no update is happening on my object. This is the message in the log file.
I am using long runnig conversations, and objects are kept in session as a hashtable, so that they can be pulled out just by using a key. Once the process is done, I ask my repository to make object persistent by invoking SaveOrUpdate. But it does not happen. I get these messages in a file. Any ideas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 27, 2008 3:09 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Quote:
2008-06-26 13:00:32,999 [4] DEBUG NHibernate.Event.Default.DefaultSaveOrUpdateEventListener - object already associated with session: [Core.billing.Invoice#1]


If your object is already associated with the session, SaveOrUpdate() does nothing. The object will be persisted anyway when the session is flushed.

_________________
--Wolfgang


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.