Created
February 23, 2013 15:48
-
-
Save hoandang/5020194 to your computer and use it in GitHub Desktop.
Get Id from the persisted object JPA
This file contains 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
import javax.persistence.GenerationType; | |
import javax.persistence.GeneratedValue; | |
@GeneratedValue(strategy=GenerationType.IDENTITY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment