• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic