스프링 부트 Generation type1 Spring jpa Column Generation Type 차이 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 @Entity @Data @Table(name="painting") public class Painting { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name = "paintingId") private Long paintingId; @Column(name = "painting_meta", columnDefinition = "text") private String painting_meta; } Colored by Color Scripter cs 자 위의 코드를 보자. GenerationType.IDENTITY 라고 적혀있다. GenerationType.SEQUENCE 로 .. 2019. 1. 9. 이전 1 다음