Last active
April 18, 2017 12:00
-
-
Save thjanssen/75d9c920ce3c6c67b136043ca0860101 to your computer and use it in GitHub Desktop.
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
@Id | |
@GeneratedValue | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.SEQUENCE) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.TABLE) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "book_generator") | |
@SequenceGenerator(name="book_generator", sequenceName = "book_seq", allocationSize=50) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
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
@Id | |
@GeneratedValue(strategy = GenerationType.TABLE, generator = "book_generator") | |
@TableGenerator(name="book_generator", table="id_generator", schema="bookstore") | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment