I am receiving the following Hibernate Exception:
@OneToOne or @ManyToOne on Matchup.awayTeam references an unknown entity: Team
The simplified
I work in a project using Spring and Hibernate 4 and I found out that we do not have a hibernate.cfg.xml
file. Instead, our beans are listed in the file applicationContext.xml
which looks a bit like
com.package.Bean
Adding my bean to the list solved the problem. You can find some more information here.