javax.persistence
Annotation Type ElementCollection


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface ElementCollection

The @ElementCollection defines a collection of instances of a basic type.


Optional Element Summary
 FetchType fetch
           
 java.lang.Class targetClass
           
 

targetClass

public abstract java.lang.Class targetClass
Default:
void.class

fetch

public abstract FetchType fetch
Default:
javax.persistence.FetchType.LAZY