• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate no row selected

 
anuja Edathu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Hibernate with oracle and i am using java, Will hibernate throw an exception when no row is selected from the database? How can we handle that?
Can any one give me an example?
Regards ,
Anuja K.
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No exception will be thrown,and object of list will be return with size zero,i.e empty list

-Praful
 
anuja Edathu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Praful,
Thank you yes now i see it.
Regards ,
Anuja K
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic