jakarta.persistence.JoinColumn s that form a single join
condition, similar in concept to jakarta.persistence.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.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private boolean | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| pack-priv String | |
| public static AnnotatedJoinColumns | buildJoinColumns(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext)
|
| public static AnnotatedJoinColumns | buildJoinColumnsOrFormulas(JoinColumnOrFormula[] joinColumnOrFormulas, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context)
|
| public static AnnotatedJoinColumns | buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, String defaultColumnSuffix, MetadataBuildingContext context)
|
| pack-priv static AnnotatedJoinColumns | buildJoinColumnsWithFormula(JoinFormula joinFormula, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context)
|
| public static AnnotatedJoinColumns | buildJoinTableJoinColumns(JoinColumn[] joinColumns, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, String mappedBy, MetadataBuildingContext context)
Called for join tables in |
| private static Column | |
| private Identifier | columnIdentifier(PersistentClass referencedEntity, String logicalReferencedColumn, ImplicitNamingStrategy implicitNamingStrategy, InFlightMetadataCollector collector, Database database)
Deprecated
as a consequence of
InFlightMetadataCollector being deprecated.
|
| private ImplicitJoinColumnNameSource. | |
| public List | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | getPropertyName()
Overrides org. PropertyHolder.
|
| public ForeignKeyType | getReferencedColumnsType(PersistentClass referencedEntity)
Determine if the given |
| public boolean | Returns: true if the association mapping annotation did specifymappedBy,
meaning that this @JoinColumn mapping belongs to an
unowned many-valued association.
|
| public boolean | |
| public boolean | |
| private boolean | |
| private boolean | |
| private static Identifier | quoteIfNecessary(boolean isRefColumnQuoted, Identifier logicalTableName, Identifier columnIdentifier)
|
| private static Identifier | |
| pack-priv Property | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPropertyName(String propertyName)
Overrides org. |
| private static Table |
| columns | back to summary |
|---|---|
| private final List<AnnotatedJoinColumn> columns Hides org. | |
| elementCollection | back to summary |
|---|---|
| private boolean elementCollection | |
| manyToManyOwnerSideEntityName | back to summary |
|---|---|
| private String manyToManyOwnerSideEntityName | |
| mappedBy | back to summary |
|---|---|
| private String mappedBy | |
| mappedByEntityName | back to summary |
|---|---|
| private String mappedByEntityName | |
| mappedByPropertyName | back to summary |
|---|---|
| private String mappedByPropertyName | |
| mappedByTableName | back to summary |
|---|---|
| private String mappedByTableName | |
| mapsId | back to summary |
|---|---|
| private String mapsId | |
| propertyName | back to summary |
|---|---|
| private String propertyName Hides org. | |
| AnnotatedJoinColumns | back to summary |
|---|---|
| public AnnotatedJoinColumns() | |
| addColumn | back to summary |
|---|---|
| public void addColumn(AnnotatedColumn child) Overrides org.
| |
| addColumn | back to summary |
|---|---|
| public void addColumn(AnnotatedJoinColumn child) | |
| buildDefaultColumnName | back to summary |
|---|---|
| pack-priv String buildDefaultColumnName(PersistentClass referencedEntity, String logicalReferencedColumn) | |
| buildJoinColumns | back to summary |
|---|---|
| public static AnnotatedJoinColumns buildJoinColumns(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext) | |
| buildJoinColumnsOrFormulas | back to summary |
|---|---|
| public static AnnotatedJoinColumns buildJoinColumnsOrFormulas(JoinColumnOrFormula[] joinColumnOrFormulas, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context) | |
| buildJoinColumnsWithDefaultColumnSuffix | back to summary |
|---|---|
| public static AnnotatedJoinColumns buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] joinColumns, String mappedBy, Map<String, Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, String defaultColumnSuffix, MetadataBuildingContext context) | |
| buildJoinColumnsWithFormula | back to summary |
|---|---|
| pack-priv static AnnotatedJoinColumns buildJoinColumnsWithFormula(JoinFormula joinFormula, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context) | |
| buildJoinTableJoinColumns | back to summary |
|---|---|
| public static AnnotatedJoinColumns buildJoinTableJoinColumns(JoinColumn[] joinColumns, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, String mappedBy, MetadataBuildingContext context) Called for join tables in | |
| column | back to summary |
|---|---|
| private static Column column(MetadataBuildingContext context, Table table, String logicalReferencedColumnName) | |
| columnIdentifier | back to summary |
|---|---|
| private Identifier columnIdentifier(PersistentClass referencedEntity, String logicalReferencedColumn, ImplicitNamingStrategy implicitNamingStrategy, InFlightMetadataCollector collector, Database database)
Deprecated as a consequence of | |
| getImplicitNature | back to summary |
|---|---|
| private ImplicitJoinColumnNameSource. | |
| getJoinColumns | back to summary |
|---|---|
| public List | |
| getManyToManyOwnerSideEntityName | back to summary |
|---|---|
| public String getManyToManyOwnerSideEntityName() | |
| getMappedBy | back to summary |
|---|---|
| public String getMappedBy() | |
| getMappedByEntityName | back to summary |
|---|---|
| public String getMappedByEntityName() | |
| getMappedByPropertyName | back to summary |
|---|---|
| public String getMappedByPropertyName() | |
| getMappedByTableName | back to summary |
|---|---|
| public String getMappedByTableName() | |
| getMapsId | back to summary |
|---|---|
| public String getMapsId() | |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Overrides org. A property path relative to the
| |
| getReferencedColumnsType | back to summary |
|---|---|
| public ForeignKeyType getReferencedColumnsType(PersistentClass referencedEntity) Determine if the given | |
| hasMappedBy | back to summary |
|---|---|
public boolean hasMappedBy()
| |
| hasMapsId | back to summary |
|---|---|
| public boolean hasMapsId() | |
| isElementCollection | back to summary |
|---|---|
| public boolean isElementCollection() | |
| isMappedBySide | back to summary |
|---|---|
| private boolean isMappedBySide() | |
| isOwnerSide | back to summary |
|---|---|
| private boolean isOwnerSide() | |
| quoteIfNecessary | back to summary |
|---|---|
| private static Identifier quoteIfNecessary(boolean isRefColumnQuoted, Identifier logicalTableName, Identifier columnIdentifier) | |
| quoteIfNecessary | back to summary |
|---|---|
| private static Identifier quoteIfNecessary(boolean isRefColumnQuoted, String logicalTableName, Identifier columnIdentifier) | |
| resolveMapsId | back to summary |
|---|---|
| pack-priv Property resolveMapsId() | |
| setElementCollection | back to summary |
|---|---|
| public void setElementCollection(boolean elementCollection) | |
| setManyToManyOwnerSideEntityName | back to summary |
|---|---|
| public void setManyToManyOwnerSideEntityName(String entityName) | |
| setMappedBy | back to summary |
|---|---|
| public void setMappedBy(String mappedBy) | |
| setMappedBy | back to summary |
|---|---|
| public void setMappedBy(String entityName, String logicalTableName, String mappedByProperty) | |
| setMapsId | back to summary |
|---|---|
| public void setMapsId(String mapsId) | |
| setPropertyName | back to summary |
|---|---|
| public void setPropertyName(String propertyName) Overrides org.
| |
| table | back to summary |
|---|---|
| private static Table table(Object persistentClassOrJoin) | |
| Modifier and Type | Field and Description |
|---|---|
| private final AttributePath | |
| pack-priv final InFlightMetadataCollector | collector
Deprecated
as a consequence of
InFlightMetadataCollector being deprecated.
|
| pack-priv final Database | |
| private final EntityNaming | |
| pack-priv final ImplicitJoinColumnNameSource. | |
| private final Identifier | |
| private final Identifier |
| Access | Constructor and Description |
|---|---|
| public | OwnedImplicitJoinColumnNameSource(PersistentClass referencedEntity, String logicalTableName, String logicalReferencedColumn)
|
| attributePath | back to summary |
|---|---|
| private final AttributePath attributePath | |
| collector | back to summary |
|---|---|
| pack-priv final InFlightMetadataCollector collector
Deprecated as a consequence of | |
| database | back to summary |
|---|---|
| pack-priv final Database database | |
| entityNaming | back to summary |
|---|---|
| private final EntityNaming entityNaming | |
| implicitNamingNature | back to summary |
|---|---|
| pack-priv final ImplicitJoinColumnNameSource. | |
| referencedColumnName | back to summary |
|---|---|
| private final Identifier referencedColumnName | |
| referencedTableName | back to summary |
|---|---|
| private final Identifier referencedTableName | |
| OwnedImplicitJoinColumnNameSource | back to summary |
|---|---|
| public OwnedImplicitJoinColumnNameSource(PersistentClass referencedEntity, String logicalTableName, String logicalReferencedColumn) | |
| getAttributePath | back to summary |
|---|---|
| public AttributePath getAttributePath() Implements org. Doc from org. Access to the name of the attribute that defines the association. For "normal" join columns, this will be the attribute where the association is defined. For "inverse" join columns, this will be the "mapped-by" attribute.
| |
| getBuildingContext | back to summary |
|---|---|
| public MetadataBuildingContext getBuildingContext() Implements org. Doc from org. Access to the current building context.
| |
| getEntityNaming | back to summary |
|---|---|
| public EntityNaming getEntityNaming() Implements org. Doc from org. Access to entity naming information. For "normal" join columns, this will be the entity where the association is defined. For "inverse" join columns, this will be the target entity.
| |
| getNature | back to summary |
|---|---|
| public ImplicitJoinColumnNameSource. Implements org.
| |
| getReferencedColumnName | back to summary |
|---|---|
| public Identifier getReferencedColumnName() Implements org. Doc from org. Access the name of the column that is the target of the FK being described
| |
| getReferencedTableName | back to summary |
|---|---|
| public Identifier getReferencedTableName() Implements org. Doc from org. Access the name of the table that is the target of the FK being described
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AttributePath | |
| pack-priv final InFlightMetadataCollector | collector
Deprecated
as a consequence of
InFlightMetadataCollector being deprecated.
|
| pack-priv final Database | |
| private final EntityNaming | |
| pack-priv final ImplicitJoinColumnNameSource. | |
| private final String | |
| private final Identifier |
| Access | Constructor and Description |
|---|---|
| public | UnownedImplicitJoinColumnNameSource(PersistentClass referencedEntity, String logicalReferencedColumn)
|
| attributePath | back to summary |
|---|---|
| pack-priv final AttributePath attributePath | |
| collector | back to summary |
|---|---|
| pack-priv final InFlightMetadataCollector collector
Deprecated as a consequence of | |
| database | back to summary |
|---|---|
| pack-priv final Database database | |
| entityNaming | back to summary |
|---|---|
| private final EntityNaming entityNaming | |
| implicitNamingNature | back to summary |
|---|---|
| pack-priv final ImplicitJoinColumnNameSource. | |
| logicalReferencedColumn | back to summary |
|---|---|
| private final String logicalReferencedColumn | |
| referencedTableName | back to summary |
|---|---|
| private final Identifier referencedTableName | |
| UnownedImplicitJoinColumnNameSource | back to summary |
|---|---|
| public UnownedImplicitJoinColumnNameSource(PersistentClass referencedEntity, String logicalReferencedColumn) | |
| getAttributePath | back to summary |
|---|---|
| public AttributePath getAttributePath() Implements org. Doc from org. Access to the name of the attribute that defines the association. For "normal" join columns, this will be the attribute where the association is defined. For "inverse" join columns, this will be the "mapped-by" attribute.
| |
| getBuildingContext | back to summary |
|---|---|
| public MetadataBuildingContext getBuildingContext() Implements org. Doc from org. Access to the current building context.
| |
| getEntityNaming | back to summary |
|---|---|
| public EntityNaming getEntityNaming() Implements org. Doc from org. Access to entity naming information. For "normal" join columns, this will be the entity where the association is defined. For "inverse" join columns, this will be the target entity.
| |
| getNature | back to summary |
|---|---|
| public ImplicitJoinColumnNameSource. Implements org.
| |
| getReferencedColumnName | back to summary |
|---|---|
| public Identifier getReferencedColumnName() Implements org. Doc from org. Access the name of the column that is the target of the FK being described
| |
| getReferencedTableName | back to summary |
|---|---|
| public Identifier getReferencedTableName() Implements org. Doc from org. Access the name of the table that is the target of the FK being described
| |