How to use Hibernate identifier sequence generators properly - Nicholas Tsim

PHOTO EMBED

Wed Apr 27 2022 14:47:25 GMT+0000 (Coordinated Universal Time)

Saved by @tfeiner #java

@Entity
public class User {
  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE)
  private Long id;
}
content_copyCOPY

https://ntsim.uk/posts/how-to-use-hibernate-identifier-sequence-generators-properly/