-->
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: Accessing state of a managed object
PostPosted: Fri Sep 16, 2005 6:03 am 
Newbie

Joined: Wed Jul 20, 2005 11:32 am
Posts: 7
Hello,

How can we access the state of a managed object in hibernate?

I need the status of a managed object to determine if it is -
a) new or
b) modified or
c) deleted.

Does anyone know how this status can be accessed? Please let me know.

regards,
~Vinayak


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

Mapping documents: Not Required

Code between sessionFactory.openSession() and session.close():Not Required

Full stack trace of any exception that occurs:Not Applicable

Name and version of the database you are using: Oracle 10g

The generated SQL (show_sql=true): Not Applicable

Debug level Hibernate log excerpt: Not Applicable


Top
 Profile  
 
 Post subject: Interceptors, Events, and the Lifecycle Interface
PostPosted: Fri Sep 16, 2005 8:04 am 
Contributor
Contributor

Joined: Thu Nov 06, 2003 9:49 pm
Posts: 104
Location: New York, NY
Take a look at the Interceptors and Events documentation here: http://www.hibernate.org/hib_docs/v3/re ... vents.html

And here:
http://www.hibernate.org/hib_docs/v3/ap ... mmary.html


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.