복붙노트

[SPRING] JPA @ 버전 : 사용 방법은?

SPRING

JPA @ 버전 : 사용 방법은?

@Entity
public class Person {
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;

    private int salary;

    @Version
    private long version;

    // ...getters and setters
}

해결법

  1. ==============================

    1.내가 말할 것:

    내가 말할 것:

  2. from https://stackoverflow.com/questions/1838646/jpa-version-how-to-use-it by cc-by-sa and MIT license