I read
http://docs.jboss.org/hibernate/stable/ ... eners.html and tried out to annotate a method in my entity with a @PostUpdate annotation (I also tried the other annotations, like @PreRemove, @PostRemove...) with no luck: My callback method are isn't invoked.
My entity looks like this:
Code:
@Entity
class XY {
[...]
@PostLoad
public void test() {
System.out.println("test() was called!");
}
}
What's going on here? Isn't that JPA feature supported by hibernate? Are there any other ways to define such callbacks for specific entities?