[Teneo] @PrePersist/PreUpdate - Hibernate Interceptors - extension manager [message #901170] |
Fri, 10 August 2012 08:13 |
R Deepak Messages: 20 Registered: July 2011 |
Junior Member |
|
|
I have a timestamp field in my model persisted using Teneo.
I would like this to be automatically updated when hibernate persists the resource to the DB.
What is the best way to do this?
Update:
I am trying to do this via hibernate interceptors. If I manually create a session with
openSession(myInterceptor), it works.
If I set the Interceptor class using the Teneo extension manager,
extensionManager.registerExtension(EMFInterceptor.class.getName(), TimeStampInterceptor.class.getName());
it does not work.
TimeStampInterceptor extends EMFInterceptor..
Is there anyother way to register a sessionFactory wide interceptor?
[Updated on: Fri, 10 August 2012 11:10] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04014 seconds