Package org.hibernate.annotations
Annotation Type Struct
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface Struct
Specifies the UDT (user defined type) name for the annotated embeddable or embedded.Example:
@Embeddable
Struct(name = "CUST")
public class Customer { ... }Example: public class Order {
Embedded
Struct(name = "CUST")
private Customer customer; }- Since:
- 6.2
-
-
Element Detail
-
name
String name
The name of the UDT (user defined type).
-
-