<?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/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-608056730343816089</id><updated>2024-11-01T11:46:49.242+01:00</updated><category term="maven"/><category term="annotation"/><category term="apache"/><category term="ci"/><category term="detach"/><category term="entity"/><category term="hg"/><category term="hibernate"/><category term="lazy"/><category term="rtfm"/><category term="scanning"/><category term="surefire"/><category term="testcase"/><category term="testng"/><title type='text'>Java addict</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-4131208135498325442</id><published>2009-09-02T16:38:00.003+02:00</published><updated>2009-09-02T16:56:17.339+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="annotation"/><category scheme="http://www.blogger.com/atom/ns#" term="scanning"/><title type='text'>Scanning java annotations - reflections</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://code.google.com/p/reflections/&quot;&gt;reflections&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&quot;Reflections scans your classpath, indexes the metadata, allows you to query it on runtime and may save and collect that information for many modules within your project.&quot;&lt;/p&gt;&lt;p&gt;Related project: &lt;a href=&quot;http://bill.burkecentral.com/2008/01/14/scanning-java-annotations-at-runtime/&quot;&gt;scannotation&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/4131208135498325442/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/4131208135498325442' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/4131208135498325442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/4131208135498325442'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2009/09/scanning-java-annotations-reflections.html' title='Scanning java annotations - reflections'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-6572181303098911958</id><published>2009-08-27T17:34:00.010+02:00</published><updated>2009-08-27T18:22:21.563+02:00</updated><title type='text'>Troubleshooting Deployment in Glassfish + XSD Namespaces</title><content type='html'>&lt;a href=&quot;http://blogs.sun.com/swchan/entry/troubleshooting_deployment_in_glassfish&quot;&gt;Troubleshooting Deployment in Glassfish&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Plussz amit sosem talalok amikor kell, nem birom megjegyezni es nem rakok fel 20 kilos eclipse plugint erte:&lt;br /&gt;&lt;br /&gt;application.xml&lt;br /&gt;&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;&amp;lt;application xmlns=&amp;quot;http://java.sun.com/xml/ns/javaee&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; version=&amp;quot;5&amp;quot; xsi:schemaLocation=&amp;quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd&amp;gt;&lt;/pre&gt;&lt;br /&gt;ejb-jar.xml&lt;br /&gt;&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;&amp;lt;ejb-jar xmlns=&amp;quot;http://java.sun.com/xml/ns/javaee&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; version=&amp;quot;3.0&amp;quot; xsi:schemaLocation=&amp;quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd&amp;quot;&amp;gt;&lt;/pre&gt;&lt;br /&gt;web.xml&lt;br /&gt;&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;&amp;lt;web-app version=&amp;quot;2.5&amp;quot; xmlns=&amp;quot;http://java.sun.com/xml/ns/javaee&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:schemaLocation=&amp;quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&amp;quot;&amp;gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/6572181303098911958/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/6572181303098911958' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/6572181303098911958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/6572181303098911958'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2009/08/troubleshooting-deployment-in-glassfish.html' title='Troubleshooting Deployment in Glassfish + XSD Namespaces'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-1849393519619230871</id><published>2009-08-16T22:42:00.005+02:00</published><updated>2009-08-16T22:49:40.126+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hg"/><category scheme="http://www.blogger.com/atom/ns#" term="rtfm"/><title type='text'>HG ignore RTFM</title><content type='html'>Eclipse-esek .hgignore file-jaban a &lt;span style=&quot;font-style:italic;&quot;&gt;.project&lt;/span&gt; biztosan megtalalhato. Sideeffectje a dolognak, hogy barmi amiben benne van a &lt;span style=&quot;font-style:italic;&quot;&gt;project&lt;/span&gt; ignoralva lesz. Hg baratunk ket pattern syntax-ot is tud, celszeru explicit megadni melyiket hasznaljuk:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;syntax: glob&lt;/span&gt;&lt;br /&gt;.project&lt;br /&gt;...&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Tovabbi RTFM &lt;a href=&quot;http://www.selenic.com/mercurial/hgignore.5.html&quot;&gt;itt&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/1849393519619230871/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/1849393519619230871' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/1849393519619230871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/1849393519619230871'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2009/08/hg-ignore-rtfm.html' title='HG ignore RTFM'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-2882532473544715428</id><published>2009-07-20T16:16:00.004+02:00</published><updated>2009-07-20T16:19:22.914+02:00</updated><title type='text'>Building Artifactory RTFM</title><content type='html'>&quot;How do I build Artifactory from source? Maven tells me there are some missing dependencies.&lt;br /&gt;&lt;br /&gt;Simply download the source and run mvn clean install from within the Artifactory root module (parent&quot;).&lt;br /&gt;To gain access to open source dependencies not currently deployed on Maven&#39;s public repositories, you have to run mvn with the artifactory profile activate. e.g.:&lt;br /&gt;mvn clean install -Partifactory.&quot;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://wiki.jfrog.org/confluence/display/RTF/Usage&quot;&gt;http://wiki.jfrog.org/confluence/display/RTF/Usage&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/2882532473544715428/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/2882532473544715428' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/2882532473544715428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/2882532473544715428'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2009/07/building-artifactory-rtfm.html' title='Building Artifactory RTFM'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-9198376192149121047</id><published>2009-07-18T01:38:00.002+02:00</published><updated>2009-07-18T01:42:29.569+02:00</updated><title type='text'>Lodon Wicket (Yeah, London BABY)</title><content type='html'>&lt;p&gt;Wicket-es eloadas slidok, forrasok, webcast-ok, stb:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://code.google.com/p/londonwicket/&quot;&gt;London-Wicket&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/9198376192149121047/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/9198376192149121047' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/9198376192149121047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/9198376192149121047'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2009/07/lodon-wicket-yeah-london-baby.html' title='Lodon Wicket (Yeah, London BABY)'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-8549293177949966066</id><published>2008-08-08T19:15:00.003+02:00</published><updated>2008-08-08T19:20:04.178+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="ci"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><title type='text'>Maven vs Apache snapshot repository</title><content type='html'>&lt;p style=&quot;margin: 10px 0 10px 0;&quot;&gt;Addot a kovetkezo motto:&lt;/p&gt;&lt;blockquote&gt;&lt;p style=&quot;margin: 10px 0 10px 0;&quot;&gt;Apache Maven Simplifies the Java Build Process — Even More Than Ant&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin: 10px 0 10px 0;&quot;&gt;A fenti idezet alapjan felteteleztem, hogy egy snapshot-os dependency-t behuzhatok a sajat projectembe. Csak hat a Apache Snapshot Repository-n a kivant artifact alatt a kovetkezo kep fogadott: &lt;a href=&quot;http://people.apache.org/repo/m2-snapshot-repository/org/apache/commons/commons-cli/2.0-SNAPSHOT/&quot;&gt;m2-snapshot-repository&lt;/a&gt;.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/8549293177949966066/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/8549293177949966066' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/8549293177949966066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/8549293177949966066'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2008/08/maven-vs-apache-snapshot-repository.html' title='Maven vs Apache snapshot repository'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-8167124722787442317</id><published>2008-08-07T11:24:00.000+02:00</published><updated>2008-08-07T03:00:45.587+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="detach"/><category scheme="http://www.blogger.com/atom/ns#" term="entity"/><category scheme="http://www.blogger.com/atom/ns#" term="hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="lazy"/><title type='text'>Lazy fetching a&#39;tka</title><content type='html'>&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Aki hasznalt/hasznal ORM framework-ot, biztos vagyok benne, hogy talalkozott mar a &lt;em&gt;LAZY&lt;/em&gt;/&lt;em&gt;EAGER&lt;/em&gt; fetching modokkal. Mind a ket loading modnak megvan az elonye/hatranya. Jelen esetben &lt;em&gt;LAZY&lt;/em&gt; mod egyik igen bosszanto es gyakran elofordulo hatranyaval fogok foglalkozni, delikvens ORM pedig a Hibernate3.&lt;/p&gt;&lt;p&gt;Tegyuk fel, hogy three tier-es kornyezetben vagyunk es presentation tier-hez szeretnenk eljuttatni egy entity-t a business tier-bol. Az entity-nk neve legyen A.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;&lt;div class=&quot;java&quot; align=&quot;left&quot;&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;color:#ffffff;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;!-- start source code --&gt;&lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;code&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;class &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;A &lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;private &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;id;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;private &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;List&amp;lt;B&amp;gt; b;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;class &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;B &lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;id;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;private &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;List&amp;lt;C&amp;gt; c;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;class &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;C &lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;id;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/code&gt; &lt;/td&gt;&lt;!-- end source code --&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Fenti kodreszlet lenyegeben az A entitynk strukturajat mutatja. Fontos, hogy B es C is entity, tehat adatbazis szinten harom tablank van. A-ban talalhato B illetve a B-ben levo C lista &lt;em&gt;LAZY&lt;/em&gt; modos fetching-t hasznal, JOIN kapcsolat van koztuk. Tehat A.getB() illetve B.getC() egy proxy-zott listat fog visszadni, csak akkor lesz populalva, ha valaki hasznalni akarja (pl. amikor vegig akarunk iteralni rajta).&lt;/p&gt;&lt;p style=&quot;align: 10px 0 10px 0&quot;&gt;Perfomance szempontjabol teljesen korrekt megoldas, minek betolteni azt, amit nem is biztos, hogy hasznalunk. Azonban van egy exception amivel szerintem minden Hibernate &quot;barat&quot; talalkozott mar: &lt;em&gt;org.hibernate.LazyInitializationException&lt;/em&gt;. Ezt az exception akkor kapjuk, amikor egy proxyzott listan akarunk vegigiteralni, viszont a Hibernate session-unk mar nem letezik, igy a lista populalasa meghiusult. &lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Tegyuk fel, hogy presentation tier es a business tier kozott WebService-en keresztul mozognak az egyes entity-k. Marshalling soran (Object -&gt; XML) valoszinuleg kapni fogunk egy exception a lazy loading miatt. A &lt;em&gt;LazyInitializationException&lt;/em&gt;-t ugy tudjuk elkerulni, hogy az entitynket &lt;em&gt;detach&lt;/em&gt;-eljuk, tehat a lazy loados listakat betoltjuk meg mielott a Hibernate session megszunne.&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Kinai farmeres modszerrel megtehetjuk azt, hogy vegigiteralunk az oszes lista elemen, viszont nem a legegeszsegesebb. Szerencsere Hibernate biztosit szamunkra egy built-in utility methodot, &lt;em&gt;org.hibernate.Hibernate#initialize(Object proxy)&lt;/em&gt;. A proxy-zott listakat atjuk a &lt;em&gt;initialize()&lt;/em&gt; methodusnak igy initializalva lesz a listank.&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;A fentiek alapjan, azt gondolnank, hogy a kovetkezo dologgal meg is oldottuk a marshalling problemat:&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;&lt;div class=&quot;java&quot; align=&quot;left&quot;&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;color:#ffffff;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;!-- start source code --&gt;&lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;code&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;A a = &lt;/span&gt;&lt;span style=&quot;color:#7f0055;&quot;&gt;&lt;b&gt;...&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#ffffff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;Hibernate.initialize&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;a.getB&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;())&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/code&gt; &lt;/td&gt;&lt;!-- end source code --&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Ha megfigyeljuk akkor B entity szinten tartalmaz egy proxyzott listat (C). Ezen lista nem kerul initializalasra, igy B entity C listajan is meg kellene hivnunk a &lt;em&gt;initialize()&lt;/em&gt; methodust. Egy nagyon complex model eseten tobb szaz soros kodreszlet lesz, ami a detach-et vegzi, ami nem a legszebb latvany, illetve konnyu hibat veteni.&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Tegyuk fel, hogy a detach-et vegzo kodot megirtuk, viszont RMI-re valtunk WebService helyett. Az RMI legjobb tulajdonsaga az, hogy egy az egyben kiszerializalja az objecteket, nem kell DDL, WebService esetben viszont igen. Ezen jo tulajdonsaga lesz esetunkben a hatranya, ugyanis List objectek konkret tipusa Hibernate fuggo, sajat tipusok. Ha a presentation tier dependency listaja nem tartalmazza a Hibernate libeket, akkor &lt;em&gt;NoClassFoundException &lt;/em&gt;fogunk kapni. &lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Most erkeztunk el a lenyeghez amiert ezt a post-ot megirtam. Letezik egy megoldas, ami a teljes detach-es kodiras terhet leveszi a vallunkrol, illetve a RMI-s problemat is eliminalja. A utility class neve, ami nem resze a Hibernate CORE-nak (egyenlore), &lt;a href=&quot;http://lists.jboss.org/pipermail/jboss-user/2008-July/126064.html&quot;&gt;HibernateCleaner&lt;/a&gt;. Ahoz, hogy detach-eljuk illetve a megszabaduljunk a hibernate dependent class tipusoktol, meg kell hivnunk a &lt;em&gt;clean()&lt;/em&gt; metodust.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/8167124722787442317/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/8167124722787442317' title='3 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/8167124722787442317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/8167124722787442317'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2008/08/lazy-fetching-atka.html' title='Lazy fetching a&#39;tka'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-608056730343816089.post-5144080500904171339</id><published>2008-08-04T20:02:00.000+02:00</published><updated>2008-08-04T23:09:46.527+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><category scheme="http://www.blogger.com/atom/ns#" term="surefire"/><category scheme="http://www.blogger.com/atom/ns#" term="testcase"/><category scheme="http://www.blogger.com/atom/ns#" term="testng"/><title type='text'>TestCase debugolas ala SureFire</title><content type='html'>&lt;p&gt;Kovetkezo problemaval szembesultunk a minap: Adott N darab TestNG-s TestCase + Maven. TestNG-s Eclipse plugin-al az osszes TestCase szepen lefut, viszont &lt;span style=&quot;font-family:lucida grande;font-size:12px;&quot;&gt;&lt;em&gt;mvn clean install&lt;/em&gt;&lt;/span&gt; hatasara failel 2-3 db. &lt;/p&gt;&lt;p&gt;Roviden tomoren, a reakcio: &lt;strong&gt;W*F???&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0px&quot;&gt;Mivel az intuicios kepesseg csodot modott, ezert debugos modszereket vetettunk be. Eloszor minden jozan eszu ember, aki m2eclipse-et hasznal, megporbalja maven-os runnerrel debug-olni. Problema az, hogy breakpoint-on atszaladt az egesz, kvazi surefire va... (oreg es faradt vagyok, hogy megnezzem a plugin forrasat, akinek konkluzio kell varjon egy kicsit :P)&lt;/p&gt;&lt;p style=&quot;MARGIN: 10px 0&quot;&gt;&lt;strong&gt;RTFM:&lt;/strong&gt;&lt;/p&gt;&lt;div style=&quot;width: 100%; background-color: silver;border:1px solid black; display: block;&quot;&gt;&lt;p style=&quot;margin: 10px 10px 10px 10px&quot;&gt;&lt;span style=&quot;font-family:lucida grande;font-size:12px;&quot;&gt;&lt;em&gt;mvn clean install -Dmaven.surefire.debug=&quot;-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent&quot;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;MARGIN: 10px 0px 10px 0px&quot;&gt;A fenti &quot;magic&quot; parameterrel ellatott maven, lehetove teszi, hogy remote debug-oljuk a TestCase-ek futtatasat/futasat.&lt;/p&gt;&lt;p style=&quot;margin: 10px 0 10px 0&quot;&gt;Ref.: &lt;a href=&quot;http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html&quot;&gt;Surfire - Debugging Tests&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dcsepely.blogspot.com/feeds/5144080500904171339/comments/default' title='Megjegyzések küldése'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/608056730343816089/5144080500904171339' title='0 megjegyzés'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/5144080500904171339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/608056730343816089/posts/default/5144080500904171339'/><link rel='alternate' type='text/html' href='http://dcsepely.blogspot.com/2008/08/testcase-debugolas-ala-surefire.html' title='TestCase debugolas ala SureFire'/><author><name>kack</name><uri>http://www.blogger.com/profile/07631438113608814496</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_rfx_Ns-VLNEs1qeCtXPR68g2qxl5e-cajHDq7xAM-JhV9yeozvGDXJ_TLJjjbYTrtLn68U5LyIjkhlUthx5kVQHdpl4xya79UucSz_XkzSDY-FXVQhsx_Sg-3dE5F0/s220/screen116.png'/></author><thr:total>0</thr:total></entry></feed>