OneToOne
Date: 2016-06-24

javax.persistence

## Annotation Type OneToOne

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

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `CascadeType[]` | `cascade`
    `FetchType` | `fetch`
    `java.lang.String` | `mappedBy`
    `boolean` | `optional`
    `boolean` | `orphanRemoval`
    `java.lang.Class` | `targetEntity`

- - ### Element Detail

    - #### 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:
        ""

    - #### orphanRemoval

          public abstract boolean orphanRemoval

      Default:
        false