-->
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.  [ 2 posts ] 
Author Message
 Post subject: Funtionality to validate a hql
PostPosted: Fri Aug 22, 2008 12:55 am 
Newbie

Joined: Tue Aug 19, 2008 5:08 am
Posts: 3
Location: India
I want to write a method which checks the hql that I have passed is right or wrong. Is there any built in functionality for that.

Help me please


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2008 3:38 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
I think the simplest would be to use Session.createQuery() and catch the exception that results from an invalid query.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.