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
 javax.persistence.FetchType fetch
           
 Class targetElement
          Represent the element class in the collection Only useful if the collection does not use generics
 

targetElement

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

Default:
void.class

fetch

public abstract javax.persistence.FetchType fetch
Default:
LAZY