This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Another "what will happen" question  RSS feed

 
Lukas Stephienn
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

What will happen if I define my finder to return single EJBObject, but query actually returns more than one result.

One random row will be returned? Or maybe exception will be thrown?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As tends to be the case with these questions, it's quite easy to determine the answer, isn't it?
 
Lukas Stephienn
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevertheless I'm not able to check that, so I thought maybe other ranchers were able and checked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!