Class AnnotatedJoinColumns
java.lang.Object
org.hibernate.boot.model.internal.AnnotatedColumns
org.hibernate.boot.model.internal.AnnotatedJoinColumns
A list of
JoinColumns that form a single join
condition, similar in concept to JoinColumns,
but not every instance of this class corresponds to an explicit annotation
in the Java code.
There's no exact analog of this class in the mapping model, so some
information is lost when it's transformed into a list of Columns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(AnnotatedColumn child) voidaddColumn(AnnotatedJoinColumn child) static AnnotatedJoinColumnsbuildJoinColumns(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext) static AnnotatedJoinColumnsbuildJoinColumnsOrFormulas(JoinColumnOrFormula[] joinColumnOrFormulas, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context) static AnnotatedJoinColumnsbuildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, String defaultColumnSuffix, MetadataBuildingContext context) static AnnotatedJoinColumnsbuildJoinTableJoinColumns(JoinColumn[] joinColumns, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, String mappedBy, MetadataBuildingContext context) Called for join tables inManyToManyassociations.getReferencedColumnsType(PersistentClass referencedEntity) Determine if the givenAnnotatedJoinColumnsrepresent a reference to the primary key of the givenPersistentClass, or whether they reference some other combination of mapped columns.booleanbooleanbooleanvoidsetElementCollection(boolean elementCollection) voidsetManyToManyOwnerSideEntityName(String entityName) voidsetMappedBy(String mappedBy) voidsetMappedBy(String entityName, String logicalTableName, String mappedByProperty) voidMethods inherited from class org.hibernate.boot.model.internal.AnnotatedColumns
checkPropertyConsistency, getBuildingContext, getColumns, getJoin, getPropertyHolder, getPropertyName, getTable, isSecondary, setBuildingContext, setJoins, setPropertyHolder, setPropertyName, setTable
-
Constructor Details
-
AnnotatedJoinColumns
public AnnotatedJoinColumns()
-
-
Method Details
-
buildJoinColumnsOrFormulas
public static AnnotatedJoinColumns buildJoinColumnsOrFormulas(JoinColumnOrFormula[] joinColumnOrFormulas, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context) -
buildJoinColumns
public static AnnotatedJoinColumns buildJoinColumns(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext) -
buildJoinColumnsWithDefaultColumnSuffix
public static AnnotatedJoinColumns buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, String defaultColumnSuffix, MetadataBuildingContext context) -
buildJoinTableJoinColumns
public static AnnotatedJoinColumns buildJoinTableJoinColumns(JoinColumn[] joinColumns, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, String mappedBy, MetadataBuildingContext context) Called for join tables inManyToManyassociations. -
getJoinColumns
-
addColumn
- Overrides:
addColumnin classAnnotatedColumns
-
addColumn
-
getReferencedProperty
-
getMappedBy
-
setMappedBy
-
hasMappedBy
public boolean hasMappedBy()- Returns:
- true if the association mapping annotation did specify
mappedBy, meaning that this@JoinColumnmapping belongs to an unowned many-valued association.
-
getMappedByEntityName
-
getMappedByPropertyName
-
getMappedByTableName
-
isElementCollection
public boolean isElementCollection() -
setElementCollection
public void setElementCollection(boolean elementCollection) -
setManyToManyOwnerSideEntityName
-
getManyToManyOwnerSideEntityName
-
setMappedBy
-
getReferencedColumnsType
Determine if the givenAnnotatedJoinColumnsrepresent a reference to the primary key of the givenPersistentClass, or whether they reference some other combination of mapped columns. -
hasMapsId
public boolean hasMapsId() -
getMapsId
-
setMapsId
-