-->
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: HQL Comments
PostPosted: Mon Apr 02, 2007 6:19 am 
Newbie

Joined: Thu Feb 22, 2007 9:49 am
Posts: 9
Is there any way of embedding comments in HQL code that I am missing? It would be a very nice feature as I'm using some fairly large queries to generate reports, and without inline documentation they'll look a bit intimidating to the next programmer who has to deal with them. As with so many queries they are comprised of simple blocks, but when seen as an uncommented whole its difficult to visualise how they break down, even with gratuitous use of whitespace.

Also, in the same vein, is there any HQL equivalent, or plans to implement a pre-compilation mechanism for queries, in a similar vein to a PreparedStatement in JDBC? It would be nice to be able to avoid the overhead of having Hibernate recompile a query every time its used, if I know it is not going to change.

I've found no reference, although I suppose its possible there is already a compilation cache tied to the HQL String passed in.


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.