<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VolkomenJuist.nl &#187; Prepared statement</title>
	<atom:link href="http://www.volkomenjuist.nl/blog/tag/prepared-statement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.volkomenjuist.nl/blog</link>
	<description>Juist! Volkomen Juist!</description>
	<lastBuildDate>Mon, 18 Jul 2011 20:00:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hibernate SQL logging</title>
		<link>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:14:46 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Log4j]]></category>
		<category><![CDATA[Prepared statement]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=298</guid>
		<description><![CDATA[When you turn on Hibernate&#8217;s SQL&#160;logging during Java development (e.g. log4j.logger.org.hibernate.SQL = debug, console), you won&#8217;t see values (only a ?) which will be/are used in a query. e.g. Now turn on some extra logging (log4j.properties): Now you&#8217;ll see some extra information like the type (StringType / EnumType / etc.) and the value: Note: When [...]]]></description>
			<content:encoded><![CDATA[<p>When you turn on Hibernate&#8217;s SQL&nbsp;logging during Java development (e.g. log4j.logger.org.hibernate.SQL = debug, console), you won&#8217;t see values (only a ?) which will be/are used in a query.<br />
e.g.</p>
<pre class="brush: plain; title: ; notranslate">
select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?
</pre>
<p>Now turn on some extra logging (log4j.properties):</p>
<pre class="brush: plain; title: ; notranslate">
log4j.logger.org.hibernate.type = trace, console
</pre>
<p>Now you&#8217;ll see some extra information like the type (StringType / EnumType / etc.) and the value:</p>
<pre class="brush: plain; title: ; notranslate">
select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?
DEBUG org.hibernate.type.EnumType  - Binding 'UNHANDLED' to parameter: 1
DEBUG org.hibernate.type.StringType  - Binding 'Bar' to parameter: 2
</pre>
<p>Note: When your application uses big queries then you&#8217;ll get a lot of extra logging\!</p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=298" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

