Top Description Methods
org.eclipse.persistence.annotations

public @Interface Struct

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

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 contains 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 a object table.

Author
James Sutherland
Since
EclipseLink 2.3
See Also
org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor, org.eclipse.persistence.mappings.structures.StructureMapping

Method Summary

Modifier and TypeMethod and Description
public String[]
fields()

(Optional) Defines the order of the fields contained in the database structure type.

public String
name()

(Required) The database name of the database structure type.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

fieldsback to summary
public String[] fields()

(Optional) Defines the order of the fields contained in the database structure type.

nameback to summary
public String name()

(Required) The database name of the database structure type.