diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AbstractAttributeBinding.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AbstractAttributeBinding.java index e85de253a5..62b8cfb742 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AbstractAttributeBinding.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AbstractAttributeBinding.java @@ -179,6 +179,12 @@ public abstract class AbstractAttributeBinding implements AttributeBinding { return propertyAccessorName; } + @Override + public boolean isBasicPropertyAccessor() { + return propertyAccessorName==null || "property".equals( propertyAccessorName ); + } + + @Override public boolean hasFormula() { for ( SimpleValue simpleValue : getValues() ) { diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AttributeBinding.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AttributeBinding.java index 8eb2534dd7..e7affb3d98 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AttributeBinding.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/AttributeBinding.java @@ -80,6 +80,8 @@ public interface AttributeBinding { public String getPropertyAccessorName(); + public boolean isBasicPropertyAccessor(); + public boolean hasFormula(); public boolean isAlternateUniqueKey();