Module eclipselink

Annotation Interface Struct


@Target(TYPE) @Retention(RUNTIME) public @interface Struct
Struct types are extended object-relational data-types supported by some databases. Struct types are user define types in the database such as OBJECT types on Oracle. Structs can normally contain Arrays (VARRAY) or other Struct types, and can be stored in a column or a table.

This annotation define a class to map to a database Struct type. The class should normally be an Embeddable, but could also be an Entity if stored in an object table.

See Also:
Author:
James Sutherland
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The database name of the database structure type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the order of the fields contained in the database structure type.
  • Element Details

    • name

      String name
      The database name of the database structure type.
    • fields

      String[] fields
      Defines the order of the fields contained in the database structure type.
      Default:
      {}