<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5883420992247205758.post872284000022252942..comments</id><updated>2010-08-12T12:17:00.554-03:00</updated><category term='arduino'/><category term='cacau'/><category term='JPA'/><category term='inglês'/><category term='SpringRoo'/><category term='java'/><category term='seam'/><category term='tdc'/><category term='macosx'/><category term='tutorial'/><category term='dica'/><category term='Hibernate'/><category term='AJAX'/><category term='sci-fi'/><category term='pencast'/><category term='gwt'/><category term='curiosidades'/><category term='JavaOne'/><category term='RIA'/><category term='globalcode'/><category term='gae'/><category term='EJB'/><category term='notícia'/><category term='iPhone'/><category term='javaEE'/><category term='spring'/><category term='história'/><category term='internet'/><category term='jboss'/><category term='ScrumToys'/><category term='JSF'/><category term='performance'/><category term='podcasts'/><category term='opinião'/><title type='text'>Comments on Blog do Spock: Usar ou não DAO nos tempos do JPA?</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.spock.com.br/feeds/872284000022252942/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default'/><link rel='alternate' type='text/html' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html'/><author><name>Dr. Spock</name><uri>http://www.blogger.com/profile/11219711170872890747</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_Y-danigLb-k/SuGvN-oJWPI/AAAAAAAAB60/I3LRiBmEbkE/S220/2009-07-30-131240.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5883420992247205758.post-4525820764816726829</id><published>2010-08-12T12:17:00.554-03:00</published><updated>2010-08-12T12:17:00.554-03:00</updated><title type='text'>Spock, como uma forma de discutir sobre este assun...</title><content type='html'>Spock, como uma forma de discutir sobre este assunto, postei minha opinião em meu blog (até por meu texto ficar muito grande).&lt;br /&gt;&lt;br /&gt;Gostaria que desse sua opinião a respeito do modelo que adotei no cenário que expliquei no blog (uma vez que este assunto sempre gera certa polêmica)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aeloy.blogspot.com/2010/08/usar-ou-nao-dao-com-jpa.html" rel="nofollow"&gt;Adolfo Eloy : usar ou nao DAO com JPA&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/4525820764816726829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/4525820764816726829'/><link rel='alternate' type='text/html' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html?showComment=1281626220554#c4525820764816726829' title=''/><author><name>Adolfo Eloy</name><uri>http://www.blogger.com/profile/06405137400104153537</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_7oBPnQGvqvU/Su9ThKyR0EI/AAAAAAAAADo/FE1hAd7Sey4/S220/surf2.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html' ref='tag:blogger.com,1999:blog-5883420992247205758.post-872284000022252942' source='http://www.blogger.com/feeds/5883420992247205758/posts/default/872284000022252942' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-229672115'/></entry><entry><id>tag:blogger.com,1999:blog-5883420992247205758.post-2134489545848825445</id><published>2008-09-04T23:01:00.000-03:00</published><updated>2008-09-04T23:01:00.000-03:00</updated><title type='text'>No caso de um método como findByCodeAndName acho i...</title><content type='html'>No caso de um método como findByCodeAndName acho interessante substituir simplesmente por &lt;I&gt;Named Query&lt;/I&gt; com um nome, por exemplo, "nomeEnidade.findByCodeAndName" com o código "from Entidade where code like ? and name like ?".&lt;BR/&gt;&lt;BR/&gt;No caso do DAO genérico via uma interface genérica e ter interfaces específicas com uma implementação baseada em generics me parece interessante. Neste caso acho legal tb a idéia de usar AOP através do conceito de &lt;I&gt;introduction&lt;/I&gt; para criar um código genérico (aspecto) que é chamado para todo é qualquer método que tem o nome find* e executa uma 'named query' com o mesmo nome do método.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/2134489545848825445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/2134489545848825445'/><link rel='alternate' type='text/html' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html?showComment=1220580060000#c2134489545848825445' title=''/><author><name>Dr. Spock</name><uri>http://www.blogger.com/profile/11219711170872890747</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07707503707660216167'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_Y-danigLb-k/SGgOeFePR1I/AAAAAAAAAMU/dkPGMTOtbAQ/S220/photo20080618T111046.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html' ref='tag:blogger.com,1999:blog-5883420992247205758.post-872284000022252942' source='http://www.blogger.com/feeds/5883420992247205758/posts/default/872284000022252942' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-805555294'/></entry><entry><id>tag:blogger.com,1999:blog-5883420992247205758.post-5960294948538749515</id><published>2008-09-04T15:34:00.000-03:00</published><updated>2008-09-04T15:34:00.000-03:00</updated><title type='text'>Legal seu texto, Spock. No entanto, e se quisermos...</title><content type='html'>Legal seu texto, Spock. No entanto, e se quisermos ter a oportunidade de oferecer mais métodos de acesso doque os propostos pela API do EntityManager ? Como por exemplo um findByCodeAndName ?&lt;BR/&gt;   Acho que com Generics conseguimos inferir um DAO Generico que simularia um "delegador" para o EntityManager e tudo aquilo que fosse criado a mais, especializaria o DAO Generico desta forma, manteríamos o encapsulamento e a simplicidade do EntityManager sem necessidade de criar vários DAOs "vazios"</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/5960294948538749515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5883420992247205758/872284000022252942/comments/default/5960294948538749515'/><link rel='alternate' type='text/html' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html?showComment=1220553240000#c5960294948538749515' title=''/><author><name>nemer</name><uri>http://www.blogger.com/profile/16494280126324722069</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.spock.com.br/2008/09/usar-ou-no-dao-nos-tempos-do-jpa.html' ref='tag:blogger.com,1999:blog-5883420992247205758.post-872284000022252942' source='http://www.blogger.com/feeds/5883420992247205758/posts/default/872284000022252942' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-582093775'/></entry></feed>
