aspose file tools*
The moose likes Object Relational Mapping and the fly likes What is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What is "object is not an instance of declaring class" error in hibernate?" Watch "What is "object is not an instance of declaring class" error in hibernate?" New topic
Author

What is "object is not an instance of declaring class" error in hibernate?

vighnesh udupa
Greenhorn

Joined: Sep 02, 2010
Posts: 9
Hi,

Can anybody help me resolving the following error?



I removed some line of error message stack as it is too big to put here.

My hibernate mapping file :-


where project manager is a foreign key in ART_ProjectTab table and primary key in ART_EmployeeTab table.

When I try to add the project details to DB i am getting the following error. I tried in web also but didn't get enough information to resolve the issue.

Thanks,
Vighnesh
Reddy Prashanth
Ranch Hand

Joined: Aug 09, 2005
Posts: 61
Can you paste the source code for the two java classes as well ( ART_ProjectVO and ART_EmployeeVO).
chetan agg
Ranch Hand

Joined: Apr 11, 2009
Posts: 31
hi,

i am facing same problem. Can you tell me how you solved this problem?

Thanks
Chetan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is "object is not an instance of declaring class" error in hibernate?