IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes Mapping Error Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Mapping Error Hibernate" Watch "Mapping Error Hibernate" New topic
Author

Mapping Error Hibernate

Tirthankar Mukherjee
Ranch Hand

Joined: Apr 08, 2006
Posts: 51













Please help me I am getting an error of :




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

Joined: Jul 20, 2009
Posts: 168
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
Posts: 51
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.
 
IntelliJ Java IDE
 
subject: Mapping Error Hibernate
 
Threads others viewed
Hibernate Criteria Ambiguos
ids for this class must be manually assigned before calling save()
org.hibernate.PropertyAccessException
many side of one to many not being populated
NonUniqueObjectException
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture