|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface ManyToMany
Specifies a many-valued association with many-to-many multiplicity. If the Collection is defined using generics to specify the element type, the associated target entity class does not need to be specified; otherwise it must be specified.
Every many-to-many association has two sides, the owning side and the non-owning, or inverse, side. If the association is bidirectional, either side may be designated as the owning side
Optional Element Summary | |
---|---|
String |
alias
The alternative name for this attribute. |
CascadeType[] |
cascade
Specifies which operations must be cascaded to the target of the association. |
FetchType |
fetch
Suggestion to the projector on how to retrieve the data for this association. |
String |
mappedBy
The field that owns the relationship. |
Class |
targetEntity
The target class of the association. |
public abstract String alias
public abstract Class targetEntity
public abstract String mappedBy
public abstract CascadeType[] cascade
public abstract FetchType fetch
The EAGER strategy instructs the projector to eagerly fetch the data. The LAZY strategy is a hint to the projector to lazily fetch the data when it is first accessed.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |