-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Génération de HQL ou SQL à partir de l'objet Criteria
PostPosted: Tue Sep 16, 2008 11:17 am 
Newbie

Joined: Tue Sep 16, 2008 11:12 am
Posts: 3
Bonjour,

Est-il possible à partir d'un objet Criteria d'obtenir un String contenant le HQL et/ou le SQL généré ?

Merci d'avance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 4:05 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
Ce n'est pas posible.
Mais on peut prendre le SQL généré lorsqu'qu'on apelle .list(), en utilisant log4j
(on peut envoyer tout sous la catégorie org.hibernate.SQL vers un nouveau fichier, par example).

_________________
Gonzalo Díaz


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 9:31 am 
Newbie

Joined: Sun May 14, 2006 7:31 am
Posts: 10
gonzao_diaz wrote:
Ce n'est pas posible.
Mais on peut prendre le SQL généré lorsqu'qu'on apelle .list(), en utilisant log4j
(on peut envoyer tout sous la catégorie org.hibernate.SQL vers un nouveau fichier, par example).


il n'y a aucun moyen de la faire ???
Si oui, pourquoi ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.