• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Can't map child List w/ composite ID

 
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got a parent/child relationship where both tables/classes have a composite ID.

Both of the objects can be queried individually w/o error but I have problems when I try to create the parent/child relationship in the mapping.

I am getting this exception message:



However, I've done what it is telling me to do...as you can see below in my mapping files...

parent:



child:



Where do I go from here? I could not find a post in the forums that would clear this issue up for me...and I'm following the exact instructions from Hibernate In Action on how to do this...yet something is wrong.

Please advise! Thanks!

Using Hibernate 3.1 & MSSQL 2000
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic