@版本不适用于spring数据jpa、Hibernate和Db2

@版本不适用于spring数据jpa、Hibernate和Db2,spring,Spring,使用DB2的Spring数据JPA不起作用。我正在使用org.springframework.data.annotation.Version;作为版本注释。如果使用@javax.persistence.version而不是@org.springframework.data.annotation.version,会发生什么情况?答案在问题中。JPA不关心Spring注释。使用JPA注释。谢谢大家@manish JB Nizet,我也发布了我的发现:

使用DB2的Spring数据JPA不起作用。我正在使用org.springframework.data.annotation.Version;作为版本注释。

如果使用@javax.persistence.version而不是@org.springframework.data.annotation.version,会发生什么情况?答案在问题中。JPA不关心Spring注释。使用JPA注释。谢谢大家@manish JB Nizet,我也发布了我的发现: