Forums Register Login

Mapping Error Hibernate

+Pie Number of slices to send: Send













Please help me I am getting an error of :




Thanks in Advance .... please help ...
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2113 times.
Similar Threads
NonUniqueObjectException
org.hibernate.PropertyAccessException
Hibernate Criteria Ambiguos
many side of one to many not being populated
ids for this class must be manually assigned before calling save()
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:32:34.