Added isEntity() method to PersistentProperty.
This commit is contained in:
@@ -153,6 +153,11 @@ public class BasicPersistentProperty implements PersistentProperty {
|
||||
return !MappingBeanHelper.isSimpleType(getType());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEntity() {
|
||||
return isComplexType() && !isTransient() && !isCollection() && !isMap();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getComponentType() {
|
||||
|
||||
@@ -54,6 +54,14 @@ public interface PersistentProperty {
|
||||
|
||||
boolean isComplexType();
|
||||
|
||||
/**
|
||||
* Returns whether the property has to be regarded as entity which means its type will be also be considered to be a
|
||||
* {@link PersistentEntity}.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean isEntity();
|
||||
|
||||
Class<?> getComponentType();
|
||||
|
||||
boolean isIdProperty();
|
||||
|
||||
Reference in New Issue
Block a user