This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 627
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: 627
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

 
wood burning stoves
 
subject: mappedBy reference an unknown target entity property error
 
Similar Threads
Problem with Hql Update
data insert error
Changing POJO class after Domain to Table creation using SchemaExport!
Hibernate Issue
Action[/demo] does not contain method named edit