• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate query is called twice???

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

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?

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!