org.hibernate.annotations
Annotation Type CollectionOfElements


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

Annotation used to mark a collection as a collection of elements or a collection of embedded objects

Author:
Emmanuel Bernard

Optional Element Summary
 FetchType fetch
           
 java.lang.Class targetElement
          Represent the element class in the collection Only useful if the collection does not use generics
 

targetElement

public abstract java.lang.Class targetElement
Represent the element class in the collection Only useful if the collection does not use generics

Default:
void.class

fetch

public abstract FetchType fetch
Default:
LAZY