|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface VariableOneToOne
Variable one to one mappings are used to represent a pointer references between a java object and an implementer of an interface. This mapping is usually represented by a single pointer (stored in an instance variable) between the source and target objects. In the relational database tables, these mappings are normally implemented using a foreign key and a type code. A VariableOneToOne can be specified within an Entity, MappedSuperclass and Embeddable class.
Optional Element Summary | |
---|---|
CascadeType[] |
cascade
(Optional) The operations that must be cascaded to the target of the association. |
DiscriminatorClass[] |
discriminatorClasses
(Optional) The list of discriminator types that can be used with this VariableOneToOne. |
DiscriminatorColumn |
discriminatorColumn
(Optional) The discriminator column will hold the type indicators. |
FetchType |
fetch
(Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. |
boolean |
optional
(Optional) Whether the association is optional. |
boolean |
orphanRemoval
(Optional) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. |
java.lang.Class |
targetInterface
(Optional) The interface class that is the target of the association. |
public abstract java.lang.Class targetInterface
public abstract CascadeType[] cascade
public abstract FetchType fetch
public abstract boolean optional
public abstract boolean orphanRemoval
public abstract DiscriminatorColumn discriminatorColumn
public abstract DiscriminatorClass[] discriminatorClasses
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |