This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mappedBy reference an unknown target entity property error

 
Arjun Reddy
Ranch Hand
Posts: 629
  • 0
  • 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
  • 0
  • 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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic