Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mappedBy reference an unknown target entity property error

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to test one to many mapping by creating tables from domain objects but I see the error mappedBy reference an unknown target entity property. Could some one take a look please?

Thanks

Employee.java



FulltimeEmployee.java


ContractEmployee.java


FlightBenefit.java



EmployeeStatus

hibernate.cfg.xml



Main.java


Error StackTrace
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got help and fix the error. I have updated the below 3 files with changes and I see Employee table being created but not the Flight Benefit table. Could someone take a look?

Thanks

Main.java


FulltimeEmployee.java


FlightBenefit.java



Stacktrace

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic