Package org.hibernate.property
Class IndexPropertyAccessor
java.lang.Object
org.hibernate.property.IndexPropertyAccessor
- All Implemented Interfaces:
PropertyAccessor
Represents a "back-reference" to the index of a collection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe Getter implementation for index backrefs.static final classThe Setter implementation for index backrefs. -
Constructor Summary
ConstructorsConstructorDescriptionIndexPropertyAccessor(String collectionRole, String entityName) Constructs a new instance of IndexPropertyAccessor. -
Method Summary
-
Constructor Details
-
IndexPropertyAccessor
Constructs a new instance of IndexPropertyAccessor.- Parameters:
collectionRole- The collection role which this back ref references.entityName- The name of the entity owning the collection.
-
-
Method Details
-
getSetter
Description copied from interface:PropertyAccessorCreate a "setter" for the named attribute- Specified by:
getSetterin interfacePropertyAccessor- Parameters:
theClass- The class on which the property is defined.propertyName- The name of the property.- Returns:
- An appropriate setter
-
getGetter
Description copied from interface:PropertyAccessorCreate a "getter" for the named attribute- Specified by:
getGetterin interfacePropertyAccessor- Parameters:
theClass- The class on which the property is defined.propertyName- The name of the property.- Returns:
- An appropriate getter.
-