This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.hibernate.loader.MultipleBagFetchException  RSS feed

 
Markus Schmider
Ranch Hand
Posts: 148
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have the following classes


They are part of a larger Object graph. When I try to run tests I get



What the ....

When I remove fetch=FetchType.EAGER the error disapears.
Curiously when I isolate the two classes in a new project and try to save them I have no problems.
So it appears that in the original project the problem arises from some interaction upstream of Adresse with the FetchEager annotated on the list.

Doing simple things like a unidirectional one-to-many relationship should not be so hard ...

Had anyone similiar problems?

It is a JSE project, my maven dependencies are

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!