aspose file tools*
The moose likes Object Relational Mapping and the fly likes mappedBy reference an unknown target entity property error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "mappedBy reference an unknown target entity property error" Watch "mappedBy reference an unknown target entity property error" New topic
Author

mappedBy reference an unknown target entity property error

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629
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


Be Humble... Be Nice.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629
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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: mappedBy reference an unknown target entity property error