javax.persistence
Annotation Type ManyToMany


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

The @ManyToMany annotation.


Optional Element Summary
 CascadeType[] cascade
           
 FetchType fetch
           
 java.lang.String mappedBy
           
 java.lang.Class targetEntity
           
 

targetEntity

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

cascade

public abstract CascadeType[] cascade
Default:
{}

fetch

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

mappedBy

public abstract java.lang.String mappedBy
Default:
""