<?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>Comentários sobre LucasAllan.com</title>
	<atom:link href="http://www.lucasallan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lucasallan.com</link>
	<description>&#34;Where there is a shell, there is a way.&#34;</description>
	<lastBuildDate>Fri, 21 Oct 2011 01:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comentário sobre Short tips to create a great API por Nivaldo Montenegro Jr.</title>
		<link>http://www.lucasallan.com/2011/10/21/short-tips-to-create-a-great-api/comment-page-1/#comment-19627</link>
		<dc:creator>Nivaldo Montenegro Jr.</dc:creator>
		<pubDate>Fri, 21 Oct 2011 01:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=440#comment-19627</guid>
		<description>Excelentes dicas. Parabéns. Abraço! :)</description>
		<content:encoded><![CDATA[<p>Excelentes dicas. Parabéns. Abraço! <img src='http://www.lucasallan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Singleton Classes on Ruby por Lucas</title>
		<link>http://www.lucasallan.com/2011/09/05/singleton-classes-on-ruby/comment-page-1/#comment-19044</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Wed, 07 Sep 2011 17:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=396#comment-19044</guid>
		<description>You can use things like that when you need to write a monkey patch or extend some feature. But, if you want to see a real example you can take a look in rails code and you will see a lot of things like that. 
In the next post I will explore a little more of that sort of thing.</description>
		<content:encoded><![CDATA[<p>You can use things like that when you need to write a monkey patch or extend some feature. But, if you want to see a real example you can take a look in rails code and you will see a lot of things like that.<br />
In the next post I will explore a little more of that sort of thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Singleton Classes on Ruby por Thiago</title>
		<link>http://www.lucasallan.com/2011/09/05/singleton-classes-on-ruby/comment-page-1/#comment-19032</link>
		<dc:creator>Thiago</dc:creator>
		<pubDate>Wed, 07 Sep 2011 04:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=396#comment-19032</guid>
		<description>Great post, but I think the code like the 2nd is really ugly (end end end...). I already saw one (official) discusion about it and many ideas like ennnd or en3d.
Going to the main discusion: this is a different feature and can show the power of ruby, but I still can&#039;t figure out how it is used in a project. Can you give a real exemple of it ?
I only can imagine it when you are using the interactive ruby to do some tests. Maybe it can break a project when it is growing up.</description>
		<content:encoded><![CDATA[<p>Great post, but I think the code like the 2nd is really ugly (end end end&#8230;). I already saw one (official) discusion about it and many ideas like ennnd or en3d.<br />
Going to the main discusion: this is a different feature and can show the power of ruby, but I still can&#8217;t figure out how it is used in a project. Can you give a real exemple of it ?<br />
I only can imagine it when you are using the interactive ruby to do some tests. Maybe it can break a project when it is growing up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre JSF utilizando o SelectOneMenu de maneira fácil por George Mendonça</title>
		<link>http://www.lucasallan.com/2010/01/05/jsf-utilizando-o-selectonemenu-de-maneira-facil/comment-page-1/#comment-18550</link>
		<dc:creator>George Mendonça</dc:creator>
		<pubDate>Mon, 08 Aug 2011 16:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=251#comment-18550</guid>
		<description>Muito bom e objetivo.
Parabéns.</description>
		<content:encoded><![CDATA[<p>Muito bom e objetivo.<br />
Parabéns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Hibernate Spatial + Postgis: Uma Introdução por Augusto</title>
		<link>http://www.lucasallan.com/2009/12/26/hibernate-spatial-postgis-uma-introducao/comment-page-1/#comment-17473</link>
		<dc:creator>Augusto</dc:creator>
		<pubDate>Thu, 16 Jun 2011 01:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=226#comment-17473</guid>
		<description>Muito bom o tutorial... me ajudou bastante...

abraço</description>
		<content:encoded><![CDATA[<p>Muito bom o tutorial&#8230; me ajudou bastante&#8230;</p>
<p>abraço</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Hibernate &#8211; Utilizando a api Criteria por Neto</title>
		<link>http://www.lucasallan.com/2009/12/27/hibernate-utilizando-a-api-criteria/comment-page-1/#comment-17389</link>
		<dc:creator>Neto</dc:creator>
		<pubDate>Wed, 08 Jun 2011 13:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=237#comment-17389</guid>
		<description>Muito bom o artigo. Simples e direto.
Obrigado</description>
		<content:encoded><![CDATA[<p>Muito bom o artigo. Simples e direto.<br />
Obrigado</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Hibernate &#8211; Utilizando a api Criteria por Junior</title>
		<link>http://www.lucasallan.com/2009/12/27/hibernate-utilizando-a-api-criteria/comment-page-1/#comment-16974</link>
		<dc:creator>Junior</dc:creator>
		<pubDate>Sat, 30 Apr 2011 09:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=237#comment-16974</guid>
		<description>Excelente o post.
  
Mas como se faz para chamar o busca por nome  no main() tipo usando um println() mesmo?</description>
		<content:encoded><![CDATA[<p>Excelente o post.</p>
<p>Mas como se faz para chamar o busca por nome  no main() tipo usando um println() mesmo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Hibernate &#8211; Utilizando a api Criteria por Paulo Junio</title>
		<link>http://www.lucasallan.com/2009/12/27/hibernate-utilizando-a-api-criteria/comment-page-1/#comment-16470</link>
		<dc:creator>Paulo Junio</dc:creator>
		<pubDate>Fri, 18 Mar 2011 17:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=237#comment-16470</guid>
		<description>Cara como eu faço trazer uma list com os dados de duas classes usando criteria??
Uso o sequinte metodo para buscar dados porem so consigo buscar de uma classe.

public List loadObjects(String campo, String pesquisa, Object obj, int firstResult, int maxResult) throws GenericException {

        testPreCondition(obj, Action.PESQUISA);

        createSession();
        Transaction tx = session.beginTransaction();

        try {
            Criteria criteria = this.session.createCriteria(obj.getClass());
            criteria.add( Restrictions.like(campo.toLowerCase(), &quot;%&quot;+pesquisa+&quot;%&quot;, MatchMode.START) );

            criteria.setFirstResult(firstResult);
            criteria.setMaxResults(maxResult);

            return criteria.list();
        } catch (HibernateException ex) {
            if ((session != null) &amp;&amp; tx.isActive()) {
                tx.rollback();
            }

            throw new GenericException(&quot;Ocorreu um erro de pesquisa&quot; + &quot; na classe &quot; + obj.getClass().getSimpleName() + &quot; com a seguinte mensagem de erro:&quot; + ex.getMessage());
        } finally {
            if ((session != null) &amp;&amp; session.isOpen()) {
             // tx.commit();
            }
        }
    }</description>
		<content:encoded><![CDATA[<p>Cara como eu faço trazer uma list com os dados de duas classes usando criteria??<br />
Uso o sequinte metodo para buscar dados porem so consigo buscar de uma classe.</p>
<p>public List loadObjects(String campo, String pesquisa, Object obj, int firstResult, int maxResult) throws GenericException {</p>
<p>        testPreCondition(obj, Action.PESQUISA);</p>
<p>        createSession();<br />
        Transaction tx = session.beginTransaction();</p>
<p>        try {<br />
            Criteria criteria = this.session.createCriteria(obj.getClass());<br />
            criteria.add( Restrictions.like(campo.toLowerCase(), &#8220;%&#8221;+pesquisa+&#8221;%&#8221;, MatchMode.START) );</p>
<p>            criteria.setFirstResult(firstResult);<br />
            criteria.setMaxResults(maxResult);</p>
<p>            return criteria.list();<br />
        } catch (HibernateException ex) {<br />
            if ((session != null) &amp;&amp; tx.isActive()) {<br />
                tx.rollback();<br />
            }</p>
<p>            throw new GenericException(&#8220;Ocorreu um erro de pesquisa&#8221; + &#8221; na classe &#8221; + obj.getClass().getSimpleName() + &#8221; com a seguinte mensagem de erro:&#8221; + ex.getMessage());<br />
        } finally {<br />
            if ((session != null) &amp;&amp; session.isOpen()) {<br />
             // tx.commit();<br />
            }<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre Desenvolvimento com Rails, mongoid,  rspec e cucumber por Gregório Melo</title>
		<link>http://www.lucasallan.com/2010/08/12/desenvolvimento-com-rails-mongoid-rspec-cucumber/comment-page-1/#comment-16249</link>
		<dc:creator>Gregório Melo</dc:creator>
		<pubDate>Mon, 28 Feb 2011 17:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=307#comment-16249</guid>
		<description>Esse trecho pra limpar o banco Mongo foi a salvação!

Valeu!</description>
		<content:encoded><![CDATA[<p>Esse trecho pra limpar o banco Mongo foi a salvação!</p>
<p>Valeu!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentário sobre will_paginate with Rails3 and Caching por Lucas</title>
		<link>http://www.lucasallan.com/2011/01/26/will_paginate-with-rails3-and-page-caching/comment-page-1/#comment-16095</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Wed, 09 Feb 2011 16:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucasallan.com/?p=375#comment-16095</guid>
		<description>You could use sweepers to expire the cache

http://api.rubyonrails.org/classes/ActionController/Caching/Sweeping.html

And I recommend you watch railslabs&#039;s screencasts about caching

http://railslab.newrelic.com/tag/caching</description>
		<content:encoded><![CDATA[<p>You could use sweepers to expire the cache</p>
<p><a href="http://api.rubyonrails.org/classes/ActionController/Caching/Sweeping.html" rel="nofollow">http://api.rubyonrails.org/classes/ActionController/Caching/Sweeping.html</a></p>
<p>And I recommend you watch railslabs&#8217;s screencasts about caching</p>
<p><a href="http://railslab.newrelic.com/tag/caching" rel="nofollow">http://railslab.newrelic.com/tag/caching</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

