javax.persistence
Annotation Type OneToMany


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


Optional Element Summary
 CascadeType[] cascade
           
 FetchType fetch
           
 String mappedBy
           
 boolean orphanRemoval
           
 Class targetEntity
           
 

targetEntity

public abstract Class targetEntity
Default:
void.class

cascade

public abstract CascadeType[] cascade
Default:
{}

fetch

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

mappedBy

public abstract String mappedBy
Default:
""

orphanRemoval

public abstract boolean orphanRemoval
Default:
false


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.