Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another "what will happen" question

 
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: 42969
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