|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface ElementCollectionThe ElementCollection annotation defines a collection of instances of a basic type or embeddable class. The ElementCollection annotation (or equivalent XML element) must be specified if the collection is to be mapped by means of a collection table.
| Optional Element Summary | |
|---|---|
FetchType |
fetch
(Optional) Whether the collection should be lazily loaded or must be eagerly fetched. |
Class |
targetClass
(Optional) The basic or embeddable class that is the element type of the collection. |
public abstract Class targetClass
public abstract FetchType fetch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||