Why is the version property not set with Spring Data JPA?

后端 未结 2 828
庸人自扰
庸人自扰 2020-12-16 01:23

Wanted to know how is @Version annotation in Spring Data REST put to use for ETags, I do not see the ETags populated for some reason

@Entity
@En         


        
2条回答
  •  孤城傲影
    2020-12-16 01:38

    With Spring Data JPA, you need to use @javax.persistence.Version. @org.springframework.data.annotation.Version is the annotation to use for other Spring Data modules.

提交回复
热议问题