1. With Hibernate, an Interceptor receives the same collection object as current and previous, how do I get real current and previous values? stackoverflow.comI have an Interceptor for a Hibernate managed object. The File and Customer tables have an intermediate table (FileCustomer) which represents a many to many relationship between the two. This is ... |
2. Reconstructing original object from Interceptor's flushDirty forum.hibernate.orgI have an Interceptor which has a flushDirty() which calls a static method in another class that does work based on old/new values of the object. Ideally, the code that I'm calling should not know anything about Hibernate or the names of the properties mentioned in the mapping files. However, flushDirty() receives as arguments: the current state of the object, a ... |
3. How to use Interceptor to get callback for object updation forum.hibernate.org |
4. use interceptor for convert entity object's values after loa forum.hibernate.orgI 'm sorry. the method : onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) Called before an object is saved. is one of what I want. but I didn't find the other. onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) Called just before an object is initialized. that isn't what I want. I want "Called just after ... |
5. attach a detached object and interceptor forum.hibernate.org |
6. Passing an object to an Interceptor? forum.hibernate.orgHi there. I am trying to audit changes. I am using an Interceptor and Hibernate version 3.2. The onFlushDirty event fires fine and my insert into the table history (saving another history bean with old and new values) works too. The only problem is I would like to know WHO makes these changes so I will have to log the user. ... |