Skip to content

Commit

Permalink
Merge pull request #11728 from svinther/fix_hibernate_entity_seq
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 31, 2020
2 parents 3716442 + a2d07d6 commit e2ad6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/main/asciidoc/hibernate-orm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public class Gift {
private Long id;
private String name;

@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="giftSeq")
@Id
@SequenceGenerator(name = "giftSeq", sequenceName = "gift_id_seq", allocationSize = 1, initialValue = 1)
@GeneratedValue(generator = "giftSeq")
public Long getId() {
return id;
}
Expand Down

0 comments on commit e2ad6a6

Please sign in to comment.