1. Interceptor OnSave Null ID Param forum.hibernate.orgI am wokring on a history interceptor for my app. For some reason, the "id" parameter in the onSave method of my Interceptor class is always null. It is getting populated when I use it in the onDelete(), or onFlushDirty(). Does anyone know how I can get the value of the primary key from inside the onSave method if it can ... |
2. Hibernate 3.0.5 problem with interceptor and not-null column forum.hibernate.orgNewbie Joined: Thu Dec 15, 2005 3:53 am Posts: 1 Hi, I'm having trouble with Hibernate interceptor when having not-null="true" in the columns that I set in the interceptor's onFlushDirty or onSave methods. My hibernate is a version 3.0.5 What I get is the following error: not-null property references a null or transient value: fi.foobar.model.Announcement.editor Here's some of the stacktrace: Stacktrace: ... |
3. getRole() returns null in Interceptor.onCollectionRecreate() forum.hibernate.orgHi all. I'm in the same situation. I'm intercepting collections creation (and updates) and to manage it correctly, for each collection intercepted, I need to know the following data: i) The type of collection elements ii) The owner type iii) The name of the owners' field which maps the collection I am able to know the first two, but I can't ... |
4. Interceptor for create/update date exploding as null forum.hibernate.orgBeginner Joined: Fri Jul 15, 2005 12:26 pm Posts: 37 Hibernate 3.2, MySQL 5.0 Some of my data objects have create/update dates that get automagically populated by an interceptor. I can see the persistent entity getting this information set, but it is still being persisted as null. Code snippets: Code: |
5. AssertionFailure: Interceptor.onPrepareStatement null or emp forum.hibernate.orgNewbie Joined: Wed Jan 09, 2008 11:30 am Posts: 1 Hi, I am getting the following Hibernate error when making a call to a webservice operation. Hibernate version: 3.0 Mapping documents: Code: |
6. Hibernate Interceptor onFlushDirty prevState[] is null forum.hibernate.orgI am trying to compare old object values with new values using prevState parameters in hibernate interceptor function public boolean onFlushDirty(Object entity, Serializable id, Object[] currState, Object[] prevState, String[] propertyNames, Type[] types) throws CallbackException I have experienced that prevState parameter is always null. Since it is null I retrieved the old state from database, however for the properties that are of ... |