Created
February 3, 2017 11:19
-
-
Save gokman/161028f73ddebe70e23ee514b23e245f to your computer and use it in GitHub Desktop.
Spring Jpa Trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Entity | |
| public class User{ | |
| . | |
| . | |
| . | |
| @PreUpdate | |
| public void preUpdate(){ | |
| System.out.println("pre update executed"); | |
| } | |
| @PrePersist | |
| public void prePersist(){ | |
| System.out.println("pre persist executed"); | |
| } | |
| . | |
| . | |
| . | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment