Merci pour votre retour rapide
alors voila en bref le code executé par chaque requete
Code:
Session session = SessionFactoryUtils.getSession(this.getSessionFactory(), true);
try
{
session.setFlushMode(FlushMode.COMMIT);
Query query = session.createQuery(request);
query.setFirstResult(firstIndex);
query.setMaxResults(maxResult);
result.addAll(query.list());
}
finally
{
session.close();
}
Sinon pour les logs j'ai encore reverifié il y a toujours une seule requete generée par hibernate par query.list(). C'est une requête normale avec un renomage de colonnes d'ou le as et une clause where
voila un exemple
Code:
Hibernate: select obmorder0_.id as order1_34_,
obmorder0_.tableid as order2_34_,
obmorder0_.size as order3_34_,
obmorder0_.execqty as order4_34_,
obmorder0_.avgprice as order5_34_,
obmorder0_.isin as order6_34_,
obmorder0_.exchange as order7_34_,
obmorder0_.owner as order8_34_,
obmorder0_.clientid as order9_34_,
obmorder0_.brokerid as order10_34_,
obmorder0_.side as order11_34_,
obmorder0_.instr as order12_34_,
obmorder0_.parentorderid as order13_34_,
obmorder0_.timecreation as order14_34_,
obmorder0_.timelastexec as order15_34_,
obmorder0_.currency as order16_34_,
obmorder0_.datefin as order17_34_,
obmorder0_.executionstate as order18_34_,
obmorder0_.fund as order19_34_,
obmorder0_.traqle as order20_34_,
obmorder0_.status as order21_34_,
obmorder0_.listorderid as order22_34_,
obmorder0_.clorderid as order23_34_,
obmorder0_.type as order24_34_,
obmorder0_.tif as order25_34_,
obmorder0_.limiteprice as order26_34_,
obmorder0_.securitydesc as order27_34_,
obmorder0_.odisysName as order28_34_ from obm_orders obmorder0_ where clientid='Group - Paris' or clientid='gg@test.com' or clientid='GGG' order by clientid, timecreation DESC limit ?, ?
Merci encore