HHH-6341 : Add AttributeBinding.isBasicPropertyAccessor()

This commit is contained in:
Gail Badner 2011-06-21 16:06:52 -07:00
parent 2129f94aa3
commit e2ff8ed542
2 changed files with 8 additions and 0 deletions

View File

@ -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() ) {

View File

@ -80,6 +80,8 @@ public interface AttributeBinding {
public String getPropertyAccessorName();
public boolean isBasicPropertyAccessor();
public boolean hasFormula();
public boolean isAlternateUniqueKey();