|[Teneo] @PrePersist/PreUpdate - Hibernate Interceptors - extension manager [message #901170]
||Fri, 10 August 2012 04:13
| R Deepak
Registered: July 2011
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?
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,
it does not work.
TimeStampInterceptor extends EMFInterceptor..
Is there anyother way to register a sessionFactory wide interceptor?
[Updated on: Fri, 10 August 2012 07:10]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01902 seconds