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
           
 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 FetchType fetch
Default:
javax.persistence.FetchType.LAZY


Copyright © 2011 Hibernate.org. All Rights Reserved.