• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in fetch=FetchType.EAGER

 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I faced weird problem, Now I used to fetch=FetchType.EAGER to eagerly fetching the ManyToOne relationship.

its work fine in web container but when I use the same code in standalone application, thrown to me exception "object references an unsaved transient instance - save the transient instance before flushing"


any idea ?!?!

 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the solution, I wasn't configure spring properly
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!