Thread:
 A couple of comments 
 gavin   03 Oct 2003, 11:45 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: gavin (03 Oct 2003, 11:45) Replies: 0, Views: 41065
Subject: A couple of comments
(1) It would be better to do this stuff in =Interceptor.onFlushDirty(),
Interceptor.onDelete()= and =Interceptor.onSave()= -
=Lifecycle.onUpdate()= is only called after an explicit
=Session.update()= call.
(2) You might be able to implement some kind of /generic/
=getDocument()= method using the Hibernate metadata API.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]