org.apache.openjpa.persistence
Annotation Type Persistent


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

Metadata annotation for a persistent field.

Since:
0.4.0
Author:
Abe White

Optional Element Summary
 CascadeType[] cascade
           
 boolean embedded
           
 FetchType fetch
           
 String mappedBy
           
 boolean optional
           
 

mappedBy

public abstract String mappedBy
Default:
""

cascade

public abstract CascadeType[] cascade
Default:
{}

optional

public abstract boolean optional
Default:
true

embedded

public abstract boolean embedded
Default:
false

fetch

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


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.