1.an AdmisRejet can be linked to a Admis or a PreCandidat.
2.Admis and PreCandidat can have many AdmisRejet.
All was working when I only had Admis and AdmisRejet.
But then I add PreCandidat (the same way as Admis), I get an hibernate error.
Can't find out why...
Model (they all have getters and setters and ids):
Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on nc.unc.importparcoursup.dao.admisDAO.AdmisRejet.preCandidatRejet references an unknown entity: nc.unc.importparcoursup.dao.pgiCocktailDAO.entity.PreCandidat