<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Hibernate HQL like query using named parameters</title>
	<atom:link href="http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/</link>
	<description>Not a blog, more a log.</description>
	<lastBuildDate>Mon, 06 Feb 2012 12:08:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kuu</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6374</link>
		<dc:creator>Kuu</dc:creator>
		<pubDate>Mon, 06 Feb 2012 12:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6374</guid>
		<description>Thanks, you saved me the day ;)</description>
		<content:encoded><![CDATA[<p>Thanks, you saved me the day <img src='http://www.stpe.se/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctrejos1284</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6356</link>
		<dc:creator>ctrejos1284</dc:creator>
		<pubDate>Thu, 28 Apr 2011 19:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6356</guid>
		<description>you can also do it without the findByNamedParam... try it in this way:

dbquery = &quot;u from user u where u.name like &#039;%&quot;+ str +&quot;%&#039;&quot;;
List l= getHibernateTemplate().find(dbquery);</description>
		<content:encoded><![CDATA[<p>you can also do it without the findByNamedParam&#8230; try it in this way:</p>
<p>dbquery = &#8220;u from user u where u.name like &#8216;%&#8221;+ str +&#8221;%&#8217;&#8221;;<br />
List l= getHibernateTemplate().find(dbquery);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitish N</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6348</link>
		<dc:creator>Nitish N</dc:creator>
		<pubDate>Mon, 24 Jan 2011 20:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6348</guid>
		<description>String query = &quot;from user u where u.name like :name&quot;
 
getHibernateTemplate().findByNamedParam(query, &quot;name&quot;, &#039;%&#039; + str + &#039;%&#039;);

this helped me.....thanks for that.... but this is case sensitivity, and i want to search irrespective of case.</description>
		<content:encoded><![CDATA[<p>String query = &#8220;from user u where u.name like :name&#8221;</p>
<p>getHibernateTemplate().findByNamedParam(query, &#8220;name&#8221;, &#8216;%&#8217; + str + &#8216;%&#8217;);</p>
<p>this helped me&#8230;..thanks for that&#8230;. but this is case sensitivity, and i want to search irrespective of case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: voyage</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6346</link>
		<dc:creator>voyage</dc:creator>
		<pubDate>Wed, 05 Jan 2011 03:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6346</guid>
		<description>here is a better solution of &#039;like&#039; problem:
http://efreedom.com/Question/1-1891901/Nhibernate-Hql-Named-Parameter</description>
		<content:encoded><![CDATA[<p>here is a better solution of &#8216;like&#8217; problem:<br />
<a href="http://efreedom.com/Question/1-1891901/Nhibernate-Hql-Named-Parameter" rel="nofollow">http://efreedom.com/Question/1-1891901/Nhibernate-Hql-Named-Parameter</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActiveRecord HQL LIKE query with parameters &#124; DJ Schwartz</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6319</link>
		<dc:creator>ActiveRecord HQL LIKE query with parameters &#124; DJ Schwartz</dc:creator>
		<pubDate>Sat, 07 Aug 2010 04:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6319</guid>
		<description>[...] a little help from Stefan Pettersson&#8217;s blog I found my solution, add the percent signs inside the [...]</description>
		<content:encoded><![CDATA[<p>[...] a little help from Stefan Pettersson&#8217;s blog I found my solution, add the percent signs inside the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActiveRecord HQL LIKE query with parameters &#171; Dan Schwartz</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6316</link>
		<dc:creator>ActiveRecord HQL LIKE query with parameters &#171; Dan Schwartz</dc:creator>
		<pubDate>Wed, 30 Jun 2010 20:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6316</guid>
		<description>[...] a little help from Stefan Pettersson&#8217;s blog I found my solution, add the percent signs inside the [...]</description>
		<content:encoded><![CDATA[<p>[...] a little help from Stefan Pettersson&#8217;s blog I found my solution, add the percent signs inside the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6308</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 11 Jun 2010 07:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6308</guid>
		<description>Thanks a lot it works!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot it works!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6293</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Wed, 05 May 2010 19:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6293</guid>
		<description>session.createQuery(&quot;from Entity where property like :prefix&quot;).setString(&quot;prefix&quot;,myString.concat(&quot;%&quot;)).list();

solved my problem, but actually i was searching for a better solution ...
looks quite dirty to me.</description>
		<content:encoded><![CDATA[<p>session.createQuery(&#8220;from Entity where property like :prefix&#8221;).setString(&#8220;prefix&#8221;,myString.concat(&#8220;%&#8221;)).list();</p>
<p>solved my problem, but actually i was searching for a better solution &#8230;<br />
looks quite dirty to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6259</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Wed, 14 Apr 2010 20:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6259</guid>
		<description>Thanks Stefan....</description>
		<content:encoded><![CDATA[<p>Thanks Stefan&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diederick</title>
		<link>http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/comment-page-1/#comment-6191</link>
		<dc:creator>Diederick</dc:creator>
		<pubDate>Thu, 28 Jan 2010 10:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stpe.se/?p=23#comment-6191</guid>
		<description>Excellent. Works with TopLink Essentials as well.</description>
		<content:encoded><![CDATA[<p>Excellent. Works with TopLink Essentials as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

