• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate query is called twice???

 
Sahil Saxena
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my appplication I am using jsf/spring/hibernate but when i execute a query which fetch all the products i found put that the query is executed twice due to which i an illegalstate exception is thrown if the managed bean of JSF is in request scope.

If i change the scope to session it doesnt throw any exception but still the query is executed twice.

Does anyone know why this thing happens?

Thanks
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!