-->
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.  [ 1 post ] 
Author Message
 Post subject: Pretty printing the HQL AST
PostPosted: Tue Jun 24, 2014 11:15 am 
Newbie

Joined: Tue Jun 24, 2014 10:44 am
Posts: 1
Hi,

I am currently working on a tool for the support of entering syntactically and semantically correct HQL statements. Therefore, I can well create the AST of a given query string with
Code:
HqlParser parser = HqlParser.getInstance(queryString);
parser.setFilter(true);
parser.statement();
AST hqlAst = parser.getAST();


I am wondering if there are some helper classes hidden somewhere in the hibernate source code, that help me in serializing the AST to a well formed HQL string. Does anoyone have an idea on that?

Regards,
Bastian


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

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.