Package org.hibernate.persister.entity
Interface PropertyMapping
-
- All Known Subinterfaces:
Queryable,QueryableCollection,SQLLoadableCollection
- All Known Implementing Classes:
AbstractCollectionPersister,AbstractEntityPersister,AbstractPropertyMapping,BasicCollectionPersister,BasicEntityPropertyMapping,CompositeElementPropertyMapping,ElementPropertyMapping,JoinedSubclassEntityPersister,OneToManyPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface PropertyMappingContract for all things that know how to map a property to the needed bits of SQL. The column/formula fragments that represent a property in the table defining the property be obtained by callingtoColumns(String). Note, the methods here are generally ascribed to accept "property paths". That is a historical necessity because of how Hibernate originally understood composites (embeddables) internally. That is in the process of changing as Hibernate has addedCompositeElementPropertyMappingtodo (6.0) : move toorg.hibernate.persister.spi- that is its more logical home. AFAIK this has never been documented as a public API todo (6.0) : re-word these Javadocs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]toColumns(String propertyName)Given a property path, return the corresponding column name(s).TypetoType(String propertyName)Given a component path expression, get the type of the property
-
-
-
Method Detail
-
toType
Type toType(String propertyName) throws QueryException
Given a component path expression, get the type of the property- Throws:
QueryException
-
toColumns
String[] toColumns(String propertyName) throws QueryException, UnsupportedOperationException
Given a property path, return the corresponding column name(s).
-
-