Class AnnotatedColumns

  • Direct Known Subclasses:

    public class AnnotatedColumns
    extends Object
    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 Columns annotation) and so JPA lets each 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.
    • Constructor Detail

      • AnnotatedColumns

        public AnnotatedColumns()
    • Method Detail

      • setPropertyHolder

        public void setPropertyHolder​(PropertyHolder propertyHolder)
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • getJoin

        public Join getJoin()
      • isSecondary

        public boolean isSecondary()
      • getTable

        public Table getTable()
        Find the table to which these columns belong, taking into account secondary tables.
        the Table given in the code by Column.table() and held here by explicitTableName.
        AnnotationException - if the table named by explicitTableName is not found among the secondary tables in joins.
      • setTable

        public void setTable​(Table table)
      • checkPropertyConsistency

        public void checkPropertyConsistency()