@Entity
public class Foo {
public boolean isGps() ...
public void setGps() ...
public static Optional<Bar> getGps() ...
}
Hibernate incorrectly detect a conflict between the isGps() and getGps() methods having the same property name, but this is not a real conflict because getGps() is a static method.
org.hibernate.MappingException: In trying to locate getter for property [gps], Class [Foo] defined both a `get` [public static java.util.Optional Foo.getGps()] and `is` [public boolean Foo.isGps()] variant
at org.hibernate.internal.util.ReflectHelper.checkGetAndIsVariants(ReflectHelper.java:485)
at org.hibernate.internal.util.ReflectHelper.verifyNoIsVariantExists(ReflectHelper.java:470)
at org.hibernate.internal.util.ReflectHelper.getGetterOrNull(ReflectHelper.java:440)
at org.hibernate.internal.util.ReflectHelper.findGetterMethod(ReflectHelper.java:392)