javax.persistence
Annotation Type ManyToOne


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

The @ManyToOne annotation.


Optional Element Summary
 CascadeType[] cascade
           
 FetchType fetch
           
 boolean optional
           
 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.EAGER

optional

public abstract boolean optional
Default:
true