Hi
Hibernate version: 2.1.4
my problem:
I wrote my own hibernate-interceptor. The code:
Code:
public class DBInterceptor implements Interceptor, Serializable {
....
public Object instantiate(final Class clazz, final Serializable serial)
throws CallbackException {
return StorageFactoryFactory.
getFactory().newObject(ObjectState.RESTORE, clazz);
}
}
And now the problem: The db-id-attribute of new objects is not set. If i change the method to 'return null;' the db-id-attribute is set by hibernate. What is my failure? Do i have to set the id manually and how can i do this?
Regards
Andr