OneToOne
annotation in package klyn.data.mapping

    public annotation OneToOne(
    mappedBy as String = "",
    fetch as FetchType = FetchType.EAGER,
    optional as Boolean = true,
    cascade as IList<CascadeType> = [],
    orphanRemoval as Boolean = false
    )

OneToOne

Declares a one-to-one entity relationship.

Example

    @OneToOne(
    fetch=FetchType.LAZY,
    cascade=[CascadeType.PERSIST, CascadeType.MERGE],
    orphanRemoval=true
    )
    public property profile as CustomerProfile