We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefbdbf commit d62d993Copy full SHA for d62d993
spring-data-jpa/src/main/java/org/springframework/data/jpa/mapping/JpaPersistentEntityImpl.java
@@ -79,7 +79,7 @@ public void verify() {
79
super.verify();
80
81
JpaPersistentProperty versionProperty = getVersionProperty();
82
- Assert.state(versionProperty != null && versionProperty.isAnnotationPresent(Version.class),
+ Assert.state(versionProperty == null || !versionProperty.isAnnotationPresent(Version.class),
83
() -> String.format(INVALID_VERSION_ANNOTATION, versionProperty));
84
}
85
0 commit comments