javax.persistence
Annotation Type OneToOne


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

Version:
$Rev: 467742 $ $Date: 2006-10-25 21:30:38 +0200 (Wed, 25 Oct 2006) $

Optional Element Summary
 CascadeType[] cascade
           
 FetchType fetch
           
 java.lang.String mappedBy
           
 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

mappedBy

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


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