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 :

[AdSense-A]

[AdSense-B]

Instead of using

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

Leave a Reply

Discover more from Knowledge

Subscribe now to keep reading and get access to the full archive.

Continue reading