using hibernate statistics