If using Hibernate:
- if using the Session API: @PrePersist, @PreUpdate wont't work (see 1)
[solution(see 2): register an event listener to hibernate events] - if using the EntityManager API: @PrePersist, @PreUpdate will work
If using pure JPA: @PrePersist, @PreUpdate work fine!
No comments:
Post a Comment