This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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.
Joined: Apr 08, 2006
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.