Top Description Methods
org.eclipse.persistence.annotations

public @Interface CompositeMember

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

A CompositeMember annotation is ignored unless is in composite member persistence unit. It may be used in conjunction with a ElementCollection and CollectionTable annotations. It should be used if target type is a primitive type and CollectionTable designates the table that belongs to composite member persistence unit other than the source composite member persistence unit. That allows the source and target to be mapped to different databases.
Author
Andrei Ilitchev
Since
Eclipselink 2.3
See Also
jakarta.persistence.ElementCollection, jakarta.persistence.CollectionTable, A CompositeMember can be specified on within an Entity, MappedSuperclass and Embeddable class.

Method Summary

Modifier and TypeMethod and Description
public String
value()

The name of a target composite member persistence unit to which element table belongs (if differs from source composite member persistence unit)

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name of a target composite member persistence unit to which element table belongs (if differs from source composite member persistence unit)