public XAnnotation < javax . persistence . OneToOne > createOneToOne ( OneToOne cOneToOne ) { return cOneToOne == null ? null : // new XAnnotation < javax . persistence . OneToOne > ( javax . persistence . OneToOne . class , // cOneToOne . getTargetEntity ( ) == null ? null : new XSingleAnnotationField < Class < Object > > ( "targetEntity" , Class . class , new XClassByNameAnnotationValue < Object > ( cOneToOne . getTargetEntity ( ) ) ) , // AnnotationUtils . create ( "cascade" , getCascadeType ( cOneToOne . getCascade ( ) ) ) , // AnnotationUtils . create ( "fetch" , getFetchType ( cOneToOne . getFetch ( ) ) ) , // AnnotationUtils . create ( "optional" , cOneToOne . isOptional ( ) ) , // AnnotationUtils . create ( "mappedBy" , cOneToOne . getMappedBy ( ) ) , // AnnotationUtils . create ( "orphanRemoval" , cOneToOne . isOrphanRemoval ( ) ) // ) ; }
9 . 1 . 23