aspose file tools
The moose likes Object Relational Mapping and the fly likes java.lang.IllegalArgumentException argument type mismatch Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "java.lang.IllegalArgumentException argument type mismatch" Watch "java.lang.IllegalArgumentException argument type mismatch" New topic
Author

java.lang.IllegalArgumentException argument type mismatch

Mahesh Chandran
Greenhorn

Joined: Mar 23, 2011
Posts: 15
Hi all,

I am trying out Hibernate after longtime. Facing issues right away. I was following some example on the net.

There are three tables: students, courses and student_courses.

Hibernate mappings:
1. Course.hbm.xml


2. Student.hbm.xml


Then I have the two POJO classes for Course and Student.

I am trying to execute this code:



Right away I get the error:



I have declared courseId as int in the POJO and in the mapping as you see.

Can you explain why this error happens still?

Thanks,
Mahesh
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.IllegalArgumentException argument type mismatch
 
Similar Threads
org.hibernate.NonUniqueObjectException
Bi-directional mapping problems while creating tables on runtime
Hibernate: How to avoid cascading delete in bi-dir ManytoMany with Jointable?
Bi-directional mapping problems while creating tables on runtime
Bad cascade