• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.IllegalArgumentException argument type mismatch

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic