X - the type of the entitypublic class EntityMapping<X> extends ParentMapping<X,X> implements RootMapping<X>
| Constructor and Description |
|---|
EntityMapping(EntityTypeImpl<X> entity) |
| Modifier and Type | Method and Description |
|---|---|
AttributeImpl<? super X,X> |
getAttribute()
Returns the attribute of the mapping.
|
EntityTypeImpl<X> |
getEntity()
Returns the entity of the root mapping.
|
Mapping<?,?,?> |
getMapping(String path)
Returns the mapping corresponding to the path.
|
EntityMapping<?> |
getRoot()
Returns the root of the mapping.
|
EntityTypeImpl<X> |
getType()
Returns the entity or embeddable type of the mapping.
|
boolean |
isEntity()
Returns if the root is an entity.
|
boolean |
isId()
Returns if the mapping is part of an id attribute.
|
addAssociations, addBasicMappings, addJoinedMappings, addPluralMappings, addSingularMappings, createMappings, getChild, getChildren, getEagerMappings, getRootAttribute, getRootPath, inheritequals, get, getIdType, getJavaType, getName, getParent, getPath, hashCode, set, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildpublic EntityMapping(EntityTypeImpl<X> entity)
entity - the entitypublic AttributeImpl<? super X,X> getAttribute()
getAttribute in class Mapping<X,X,X>public EntityTypeImpl<X> getEntity()
public Mapping<?,?,?> getMapping(String path)
getMapping in interface RootMapping<X>path - the path of the mappingpublic EntityMapping<?> getRoot()
public EntityTypeImpl<X> getType()
getType in interface RootMapping<X>getType in class ParentMapping<X,X>public boolean isEntity()
isEntity in interface RootMapping<X>public boolean isId()
isId in class ParentMapping<X,X>Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.