[jboss-user] [EJB 3.0] - Entity value already changed in @PreUpdate method
lpmon
do-not-reply at jboss.com
Tue May 27 14:58:29 EDT 2008
I need to know the before and after values when an update occurs. I can clearly see using the debugger that when the preupdate annotated method is called the value of interest already has the new value/changed!
My intent was to save the old value in the @PreUpdate method and then use it during the @PostUpdate for comparison. With this behavior this approach wont work.
Isn't the entity supposed to have the old value during @PreUpdate method call?
Using:
JBoss AS 4.0.5 w/EJB3
Hibernate 3.2.5
Seam 1.2.1
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153766#4153766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153766
More information about the jboss-user
mailing list