• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OneToMany relationship

 
Will Myers
Ranch Hand
Posts: 383
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I need some help in mapping a relationship...

my tables look like:



I'm trying to map the CurrencyHolidays as a set inside the Currency object like so:



but this is causing an exception:



I can't change the database schema so what am i doing wrong?
 
Will Myers
Ranch Hand
Posts: 383
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so contrary to what this says you need to add



to the id column in the source entity
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic