This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OneToMany relationship

 
Will Myers
Ranch Hand
Posts: 387
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: 387
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