-->
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.  [ 3 posts ] 
Author Message
 Post subject: event system documentation
PostPosted: Fri Aug 26, 2005 2:22 pm 
Newbie

Joined: Thu Jun 30, 2005 8:18 am
Posts: 6
Where can I find documentation about the event system. The tutorial has some info about it but it does not describe when all the events occurs and what the contract for the events are. What actions are allowed, what does the return value indicate etc. etc.

I want to use an event listener to update a lastChanged field to the current date/time when an entity is saved to the database. I wrongly assumed flush-entity was the right event to do this. I now assume that preUpdate is the one but I'm not sure and cannot find good information on the site or in the forums.

There is some example code in the forums but that is not using events but the old deprecated system.

Any pointers to some docs on this are very welcome.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 2:42 pm 
Regular
Regular

Joined: Sun May 08, 2005 2:48 am
Posts: 118
Location: United Kingdom
Starting point: http://www.hibernate.org/hib_docs/v3/reference/en/html/events.html


Top
 Profile  
 
 Post subject: Event Documentation
PostPosted: Thu Feb 09, 2006 12:00 am 
Newbie

Joined: Wed Feb 08, 2006 11:53 pm
Posts: 6
The event model in Hibernate is really cool and I would like to use it for object state to audit logs, however, the documentation seems pretty sparse. I have read the documentation in the user guide and looked into the API docs, but the only way to figure it out appears to be to read source code or play around with it.

Am I incorrect? Could the JavaDocs for the Event and EventListener classes be beefed up? Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.