Annotation Type SecondaryRow

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean optional
      Unless disabled, specifies that no row should be inserted in the secondary table if all the columns of the secondary table would be null.
      boolean owned
      If enabled, Hibernate will never insert or update the columns of the secondary table.
      String table
      The name of the secondary table, as specified by SecondaryTable.name().
      • owned

        boolean owned
        If enabled, Hibernate will never insert or update the columns of the secondary table.

        This setting is useful if data in the secondary table belongs to some other entity, or if it is maintained externally to Hibernate.

        Default:
        true
      • optional

        boolean optional
        Unless disabled, specifies that no row should be inserted in the secondary table if all the columns of the secondary table would be null. Furthermore, an outer join will always be used to read the row. Thus, by default, Hibernate avoids creating a row containing only null column values.
        Default:
        true