-->
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: Is there a free query formatting tool?
PostPosted: Fri Jun 23, 2006 11:36 am 
Regular
Regular

Joined: Tue Mar 21, 2006 11:01 am
Posts: 65
When debugging, it is tedious to look at one of the complex queries that Hibernate generates, which, of course, are logged all in one line of text.

A handy tool would be something that would break up the line in an intelligent manner, making it easier to understand the query at a glance.

Can someone point me at a utility that does this? I have written such things before, but I don't have one handy now.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 1:29 pm 
Expert
Expert

Joined: Tue Apr 25, 2006 12:04 pm
Posts: 260
I suppose you havent used this property setting in your hibernate.cfg.xml file.

<property name="format_sql">true</property>

With this property setting, the query is logged to multiple lines instead of one line.


Top
 Profile  
 
 Post subject: Alas, I'm using 3.0.5
PostPosted: Fri Jun 23, 2006 1:37 pm 
Regular
Regular

Joined: Tue Mar 21, 2006 11:01 am
Posts: 65
and have no choice in that matter.

3.0.5 does not provide that property. :-(


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.