org.hibernate.property
Class BackrefPropertyAccessor
java.lang.Object
org.hibernate.property.BackrefPropertyAccessor
- PropertyAccessor
public class BackrefPropertyAccessor
extends java.lang.Object
Represents a "back-reference" to the id of a collection owner. A "back-reference" is pertinent in mapping scenarios
where we have a uni-directional one-to-many association in which only the many side is mapped. In this case it is
the collection itself which is responsible for the FK value.
In this scenario, the one side has no inherent knowledge of its "owner". So we introduce a synthetic property into
the one side to represent the association; a so-called back-reference.
static Serializable | UNKNOWN - A placeholder for a property value, indicating that
we don't know the value of the back reference
|
BackrefPropertyAccessor(String collectionRole, String entityName) - Constructs a new instance of BackrefPropertyAccessor.
|
UNKNOWN
public static final Serializable UNKNOWN
A placeholder for a property value, indicating that
we don't know the value of the back reference
BackrefPropertyAccessor
public BackrefPropertyAccessor(String collectionRole,
String entityName)
Constructs a new instance of BackrefPropertyAccessor.
collectionRole
- The collection role which this back ref references.entityName
- The owner's entity name.