Top Description Fields Constructors Methods
org.hibernate.boot.model.internal

public Class AnnotatedColumns

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.boot.model.internal.AnnotatedJoinColumns
Imports
java.util.ArrayList, .Collections, .List, .Map, org.hibernate.AnnotationException, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.mapping.Join, .Table

A list of columns that are mapped to a single Java property or field. This is a slightly uncomfortable abstraction here, because this concept is arguably missing from JPA (where there's no equivalent of the Hibernate-defined org.hibernate.annotations.Columns annotation) and so JPA lets each jakarta.persistence.Column specify its own table. That leaves us having to enforce the requirement that every column mapped to a given property must belong to the same table.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private MetadataBuildingContext
private final List<AnnotatedColumn>
private Map<String, Join>
private PropertyHolder
private String
private Table

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public MetadataBuildingContext
public List<AnnotatedColumn>
public Join
public PropertyHolder
public String
getPropertyName()

A property path relative to the PropertyHolder.

public Table

Returns:

the Table given in the code by jakarta.persistence.Column#table() and held here by explicitTableName.
getTable
()

Find the table to which these columns belong, taking into account secondary tables.

public boolean
public void
public void
public void
public void
setPropertyName(String propertyName)

public void
setTable(Table table)

pack-priv void
setTableInternal(Table table)

Deprecated Use setTable(Table) instead
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

buildingContextback to summary
private MetadataBuildingContext buildingContext
columnsback to summary
private final List<AnnotatedColumn> columns
joinsback to summary
private Map<String, Join> joins
propertyHolderback to summary
private PropertyHolder propertyHolder
propertyNameback to summary
private String propertyName
tableback to summary
private Table table

Constructor Detail

AnnotatedColumnsback to summary
public AnnotatedColumns()

Method Detail

addColumnback to summary
public void addColumn(AnnotatedColumn child)
checkPropertyConsistencyback to summary
public void checkPropertyConsistency()
getBuildingContextback to summary
public MetadataBuildingContext getBuildingContext()
getColumnsback to summary
public List<AnnotatedColumn> getColumns()
getJoinback to summary
public Join getJoin()
getPropertyHolderback to summary
public PropertyHolder getPropertyHolder()
getPropertyNameback to summary
public String getPropertyName()

A property path relative to the PropertyHolder.

getTableback to summary
public Table getTable()

Find the table to which these columns belong, taking into account secondary tables.

Returns:Table

the Table given in the code by jakarta.persistence.Column#table() and held here by explicitTableName.

Exceptions
AnnotationException:
if the table named by explicitTableName is not found among the secondary tables in joins.
isSecondaryback to summary
public boolean isSecondary()
setBuildingContextback to summary
public void setBuildingContext(MetadataBuildingContext buildingContext)
setJoinsback to summary
public void setJoins(Map<String, Join> joins)
setPropertyHolderback to summary
public void setPropertyHolder(PropertyHolder propertyHolder)
setPropertyNameback to summary
public void setPropertyName(String propertyName)
setTableback to summary
public void setTable(Table table)
setTableInternalback to summary
pack-priv void setTableInternal(Table table)

Deprecated

Use setTable(Table) instead

Annotations
@Deprecated