Mapping file orm.xml has this,
<access>PROPERTY</access>
If there is a boolean property and accessors defined as,
Code:
public boolean getFoo() {
return foo;
}
public boolean isFoo() {
return foo;
}
public void setFoo(boolean foo) {
this.foo = foo;
}
Then it fails with this exception,
Caused by: org.hibernate.MappingException: Duplicate property mapping of foo found in ...
If the getter (getFoo) is removed then it works.
It works fine in EclipseLink with both getFoo as well isFoo present in the entity.
Is this a hibernate bug?