AnnotationException: @OneToOne or @ManyToOne code example Example: AnnotationException: @OneToOne or @ManyToOne @org.hibernate.annotations.Entity