2
I own the Report Class
public class Report{
private String nome;
@ManyToOne
@JoinColumn( name = "idpai", referencedColumnName = "id" )
private List<Report> subReports
getters e setters...
}
My doubt is how to carry out the annotation in the correct way, in this way as above I am receiving:
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on br.com.koinonia.habil.model.user.Report.subReportProvider references an unknown entity: java.util.List
The Subreport list being an array of the Report class itself, that is, it is the same table.
How to proceed?
Smashing success, thank you!
– Augusto Silverio
Hello Andre, I need help in another situation,
– Augusto Silverio