Caused by: org.hibernate.AnnotationException: @Column(s) not allowed on a @OneToOne property:

Caused by: org.hibernate.AnnotationException: @Column(s) not allowed on a @OneToOne property: 

Solution :

Instead of using

@Column(name="columnName")
Use 
@JoinColumn(name="columnName")

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.