jQuery in Action
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
Author

Mapping Error Hibernate

Tirthankar Mukherjee
Ranch Hand

Joined: Apr 08, 2006
Messages: 44














Please help me I am getting an error of :




Thanks in Advance .... please help ...
Christian Dillinger
Ranch Hand

Joined: Jul 20, 2009
Messages: 105

Please do not post the same question to multiple forums...

The problem is that you try to map to int-Kex but tell Hibernate that its a Department:
<many-to-one name="deptId" class="com.entity.Department" cascade="save-update" column="DEPT_ID"/>

Have a look at the Hibernate docs that shows you basic examples.
Tirthankar Mukherjee
Ranch Hand

Joined: Apr 08, 2006
Messages: 44

Thanks Christian, actually I became very desperate to find my answer, so I posted the same question in different forums. Thanks for clearing my concept, actually I misunderstood some of the examples that I have seen. Thanks a lot.
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
hibernate profiler

.