<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" 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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkYHQ3g_eSp7ImA9WhBbGUk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807</id><updated>2013-05-19T09:22:12.641+02:00</updated><category term="Thucydides" /><category term="VisualVM" /><category term="Mockito" /><category term="JPA" /><category term="JBoss" /><category term="jQuery" /><category term="Performance" /><category term="JSR-305" /><category term="Unit Test" /><category term="QA" /><category term="Profiling" /><category term="debugger" /><category term="Spring Framework" /><category term="PMD" /><category term="Geolocation" /><category term="Hibernate" /><category term="UI" /><category term="Jackson" /><category term="Oracle" /><category term="Spring Security" /><category term="Selenium 2" /><category term="Spring WebFlow" /><category term="JBehave" /><category term="OpenJPA" /><category term="STS" /><category term="Projection" /><category term="OCUnit" /><category term="JPQL" /><category term="JMX" /><category term="BDD" /><category term="EclipseLink" /><category term="FindBugs" /><category term="NSLog" /><category term="Eclipse" /><category term="Objective-C" /><category term="JBoss Modules" /><category term="JUnit" /><category term="EasyB" /><category term="JSON" /><title>Warlock's Thoughts</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://vard-lokkur.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/vard-lokkur" /><feedburner:info uri="vard-lokkur" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CUcNSX07eyp7ImA9WhBbGUk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-5150855802336729028</id><published>2013-05-11T07:00:00.000+02:00</published><updated>2013-05-19T07:58:18.303+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-19T07:58:18.303+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Projection" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><category scheme="http://www.blogger.com/atom/ns#" term="Performance" /><title>JPA - Querydsl Projections</title><summary type="html">In my last post: JPA - Basic Projections - I've mentioned about two basic possibilities of building JPA Projections. This post brings you more examples, this time based on Querydsl framework. Note, that I'm referring Querydsl version 3.1.1 here.


Reinvented constructor expressions 

Take a look at the following code:

 The above Querydsl construction means: create new JPQL query [1] [2], using &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/Yg3asZTG2-0" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/5150855802336729028/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2013/05/jpa-querydsl-projections.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/5150855802336729028?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/5150855802336729028?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/Yg3asZTG2-0/jpa-querydsl-projections.html" title="JPA - Querydsl Projections" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2013/05/jpa-querydsl-projections.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMGQnY6eSp7ImA9WhBbGUk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-8705385177952987283</id><published>2013-05-04T08:00:00.000+02:00</published><updated>2013-05-19T08:03:43.811+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-19T08:03:43.811+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Projection" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><category scheme="http://www.blogger.com/atom/ns#" term="Performance" /><title>JPA - Basic Projections</title><summary type="html">In my last post: JPA - Should I become a laziness extremist? - I mentioned about the possibilities of improving JPA usage - one of them is using Projections.

Projection is a subset of entities' properties. It can be represented as dedicated class (or classes), and mapped either as the database view based entity, or using constructor expressions [1][2]. The clue of this solution is having very &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/pIxYhNo3SD8" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/8705385177952987283/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2013/05/jpa-basic-projections.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8705385177952987283?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8705385177952987283?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/pIxYhNo3SD8/jpa-basic-projections.html" title="JPA - Basic Projections" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2013/05/jpa-basic-projections.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUADRnc6cSp7ImA9WhBUFkk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-3867277841661300866</id><published>2013-04-27T08:00:00.000+02:00</published><updated>2013-05-04T08:09:37.919+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-04T08:09:37.919+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><category scheme="http://www.blogger.com/atom/ns#" term="Performance" /><title>JPA - Should I become a laziness extremist?</title><summary type="html">When you spoke with the Developers about mapping objects to relational databases, they very often complain about poor JPA performance, unpredictable behavior of JPA Providers, etc. Usually at some point of the conversation you will hear: "Let's drop this technology at all, we've seen something much better on the conference last month. We will use it in our projects instead of JPA and develop them&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/4wlXuovx9EE" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/3867277841661300866/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2013/04/jpa-should-i-become-laziness-extremist.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3867277841661300866?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3867277841661300866?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/4wlXuovx9EE/jpa-should-i-become-laziness-extremist.html" title="JPA - Should I become a laziness extremist?" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-V-b7jiVu1lA/UWE5g9ozQmI/AAAAAAAACPY/p_9S1gaaYSE/s72-c/diagram.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2013/04/jpa-should-i-become-laziness-extremist.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUBQnk4cSp7ImA9WhBUEEk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-278028106194598029</id><published>2013-04-06T14:30:00.000+02:00</published><updated>2013-04-27T07:57:33.739+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-27T07:57:33.739+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>JPA - Hibernate - Type mapping on package level</title><summary type="html">When we are finally mature enough to use some custom types mapping in JPA, we usually stuck with some provider specific solution, because JPA itself doesn't define any mechanism for doing it. Let me show you an example of custom type mapping definition for one of the JPA providers - Hibernate.

Suppose that we use Joda Money in our project, and have an entity with property having type Money. &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/8r_A9WEtlZE" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/278028106194598029/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2013/04/jpa-hibernate-type-mapping-on-package.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/278028106194598029?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/278028106194598029?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/8r_A9WEtlZE/jpa-hibernate-type-mapping-on-package.html" title="JPA - Hibernate - Type mapping on package level" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2013/04/jpa-hibernate-type-mapping-on-package.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAASXw_cSp7ImA9WhBbGUk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2467309653957950497</id><published>2012-12-02T15:00:00.000+01:00</published><updated>2013-05-19T08:09:08.249+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-19T08:09:08.249+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><title>Spring's Web MVC - Redirect to the Memory Leak</title><summary type="html">They say that one rock can cause an avalanche. Lately, one of my Colleagues, Marcin Radoszewski, gave me such a rock. You'll probably never guess what it is, but there is a chance, that you use it in many of your Web Applications. Allow me to introduce this rock to you :)

You probably well know redirect after post pattern. Using Spring Framework you have few ways to implement it, let's focus on &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/iCzOd9uJ4pU" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2467309653957950497/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/12/springs-web-mvc-redirect-to-memory-leak.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2467309653957950497?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2467309653957950497?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/iCzOd9uJ4pU/springs-web-mvc-redirect-to-memory-leak.html" title="Spring's Web MVC - Redirect to the Memory Leak" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/12/springs-web-mvc-redirect-to-memory-leak.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIGRnY_eCp7ImA9WhNSFEw.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-8949192333603653702</id><published>2012-08-13T23:00:00.000+02:00</published><updated>2012-10-28T11:02:07.840+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-28T11:02:07.840+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JPQL" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle" /><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>JPQL - pagination on Oracle Database with Hibernate</title><summary type="html">In your daily work, you rely on many different libraries, trusting they will serve you well, being perfect piece of code ... do you? ... really?! Then it's time to realize that you are perfectly wrong :) Increasing complexity of code leads to new possibilities of making errors :) Many of them are lurking in the libraries used by you, even if they are used for years by thousands of developers.

&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/LSFBfpeJzVg" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/8949192333603653702/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/08/jpql-pagination-on-oracle-database-with.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8949192333603653702?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8949192333603653702?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/LSFBfpeJzVg/jpql-pagination-on-oracle-database-with.html" title="JPQL - pagination on Oracle Database with Hibernate" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/08/jpql-pagination-on-oracle-database-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkADQ3g5fyp7ImA9WhNSFEw.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-3863032392127496435</id><published>2012-03-19T21:00:00.008+01:00</published><updated>2012-10-28T11:06:12.627+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-28T11:06:12.627+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="FindBugs" /><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse" /><title>Suppressing FindBugs warnings</title><summary type="html">Few days ago I spoke with my Friend, Tomek, about suppressing FindBugs warnings. Here is brief summary of our conversation, which may be interesting for you.

There is one simple method for suppressing the FindBugs warnings - usage of edu.umd.cs.findbugs.annotations.SuppressWarnings annotation. Just add it in place where FindBugs reported problem, and use appropriate bug code.

You should start &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/0hfefhDPOBA" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/3863032392127496435/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/03/suppressing-findbugs-warnings.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3863032392127496435?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3863032392127496435?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/0hfefhDPOBA/suppressing-findbugs-warnings.html" title="Suppressing FindBugs warnings" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-jF6aCx-aiS8/T2eGljQBaII/AAAAAAAAB7Y/S901r80vPYw/s72-c/FindBugs+-+Error+Code.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/03/suppressing-findbugs-warnings.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QMQX0zcSp7ImA9WhNSFEw.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-1620512591768243677</id><published>2012-03-07T22:30:00.005+01:00</published><updated>2012-10-28T11:16:20.389+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-28T11:16:20.389+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="QA" /><category scheme="http://www.blogger.com/atom/ns#" term="FindBugs" /><category scheme="http://www.blogger.com/atom/ns#" term="JSR-305" /><title>FindBugs and JSR-305</title><summary type="html">Suppose that group of developers work in parallel on parts of big project - some developers are working on service implementation, while others are working on code using this service. Both groups agreed on service API, and started working separately, having in mind the API assumptions...

Do you think this story will have happy end? Well, ... - maybe :) - there are tools which can help achieve it&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/HqrdCpQQGOg" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/1620512591768243677/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/03/findbugs-and-jsr-305.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/1620512591768243677?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/1620512591768243677?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/HqrdCpQQGOg/findbugs-and-jsr-305.html" title="FindBugs and JSR-305" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-erzGzGZlDMk/T1fKGoTF2gI/AAAAAAAAB4M/7NqkI0If0U4/s72-c/Run+FindBugs.png" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/03/findbugs-and-jsr-305.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYGRnc_fSp7ImA9WhRaFkg.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-736294933007187482</id><published>2012-02-19T12:30:00.000+01:00</published><updated>2012-02-19T12:48:47.945+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-19T12:48:47.945+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><title>Spring MVC - Flash Attributes</title><summary type="html">Latest Spring Framework incarnation (3.1) brought interesting feature called Flash Attributes. It is remedy for the problem mentioned a long time ago, in one of my posts: Spring MVC - Session Attributes handling. This problem can be described in few words: if we want to pass the attributes via redirect between two controllers, we cannot use request attributes (they will not survive the redirect),&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/nvmu4W3JZXs" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/736294933007187482/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/02/spring-mvc-flash-attributes.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/736294933007187482?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/736294933007187482?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/nvmu4W3JZXs/spring-mvc-flash-attributes.html" title="Spring MVC - Flash Attributes" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/02/spring-mvc-flash-attributes.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMFSXg-fSp7ImA9WhRWGUw.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2117859838889626860</id><published>2012-01-07T07:30:00.012+01:00</published><updated>2012-01-07T07:40:18.655+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-07T07:40:18.655+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="EasyB" /><category scheme="http://www.blogger.com/atom/ns#" term="BDD" /><category scheme="http://www.blogger.com/atom/ns#" term="Selenium 2" /><category scheme="http://www.blogger.com/atom/ns#" term="Thucydides" /><title>EasyB, Thucydides and Selenium 2 - another BDD example</title><summary type="html">Today I'll present you quick example of usage for EasyB - BDD framework for Java :), accompanied by Thucydides - amazing tool for ATDD build on top of Selenium 2.

Suppose that you want to leave something for the humanity, after many sleepless nights you finally discover that it will be a movie database, even more: Internet Movie Database. Now, my Friend, you have two ways: you can start writing &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/XqFdo1YSbek" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2117859838889626860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2012/01/easyb-thucydides-and-selenium-2-another.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2117859838889626860?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2117859838889626860?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/XqFdo1YSbek/easyb-thucydides-and-selenium-2-another.html" title="EasyB, Thucydides and Selenium 2 - another BDD example" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-xYn4Tw5ZbLY/TwaZT1FCE0I/AAAAAAAAB1s/Qa4OETrqd3o/s72-c/EasyB+-+Pending+Scenario+Results.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2012/01/easyb-thucydides-and-selenium-2-another.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUCRXc9fCp7ImA9WhdWGUk.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-6887977132956964475</id><published>2011-09-13T22:30:00.004+02:00</published><updated>2011-09-13T23:11:04.964+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-13T23:11:04.964+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JBoss Modules" /><category scheme="http://www.blogger.com/atom/ns#" term="JBoss" /><title>Modular Web Application based on JBoss Modules</title><summary type="html">Recently I read Why there is no standard for developing real modular web applications? by Patroklos Papapetrou. Inspired by this article I decided to check JBoss Modules in action. This post describes my experiment step by step.

I've started with following goal in mind - create web application using some service defined by my own JBoss module. Service prepared by me was pretty simple,  I named &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/ZgsCeDGmIl8" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/6887977132956964475/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/09/modular-web-application-based-on-jboss.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6887977132956964475?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6887977132956964475?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/ZgsCeDGmIl8/modular-web-application-based-on-jboss.html" title="Modular Web Application based on JBoss Modules" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-9I7tDMwpbbA/Tm0iexj52gI/AAAAAAAAB1I/pOpB70u4yFI/s72-c/Echo+Module+-+Directory+Structure.png" height="72" width="72" /><thr:total>5</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/09/modular-web-application-based-on-jboss.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08FSH8-fyp7ImA9WhdQFU8.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-6756619537602703250</id><published>2011-08-16T23:00:00.002+02:00</published><updated>2011-08-16T23:23:39.157+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-16T23:23:39.157+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="BDD" /><category scheme="http://www.blogger.com/atom/ns#" term="JBehave" /><title>JBehave - quick BDD example</title><summary type="html">After few last months of work on some projects with Spring MVC, Spring WebFlow, and JPA I had to do something else ;) - even for a while ;) - below you may find a results of my small experiments with Behavior Driven Development and JBehave :)

I started with Introducing BDD and What's in a Story? articles by Dan North, and Alex Soto blog entry about Spring Framework, JBehave and Selenium 2 &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/aakhpWR0FI4" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/6756619537602703250/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/08/jbehave-quick-bdd-example.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6756619537602703250?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6756619537602703250?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/aakhpWR0FI4/jbehave-quick-bdd-example.html" title="JBehave - quick BDD example" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-5KUmfgzaDSE/TkrbcRMCUrI/AAAAAAAAB08/sLHnpSutSuc/s72-c/JBehave+Report.png" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/08/jbehave-quick-bdd-example.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEENRHo9eyp7ImA9WhZaEE4.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-8525213073167576450</id><published>2011-06-25T23:00:00.003+02:00</published><updated>2011-06-25T23:18:15.463+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-25T23:18:15.463+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OpenJPA" /><category scheme="http://www.blogger.com/atom/ns#" term="JPQL" /><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink" /><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>JPQL and joins</title><summary type="html">Have you ever asked yourself if JPQL (Java Persistence Query Language) queries written by you REALLY do what you want, or you just prepare them, commit to the code repository, and forget about them with a little help from pizza and beer ;) ...

Let's take a look at very simple example, we have Person entity:
@Entity
@Table(name = "PERSONS")
public class Person implements Serializable {

    &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/OLHL2ynG2SU" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/8525213073167576450/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/06/jpql-and-joins.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8525213073167576450?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8525213073167576450?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/OLHL2ynG2SU/jpql-and-joins.html" title="JPQL and joins" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/06/jpql-and-joins.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQEQXs9eSp7ImA9WhZUGUg.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-3432991450418847935</id><published>2011-06-13T11:45:00.004+02:00</published><updated>2011-06-13T11:45:00.561+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-13T11:45:00.561+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="PMD" /><title>Customize PMD in Eclipse with your own rules</title><summary type="html">PMD is very nice Java code scanner which helps you avoid potential programming problems. It can be easily extended to your needs, and this post will bring you simple example of custom PMD rules related to JPA's @Enumerated annotation usage.

Before you'll continue the reading, you should check one of my previous posts - JPA - @Enumerated default attribute. When you work with the group of people &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/3Oa6Ts77-CE" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/3432991450418847935/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/06/customize-pmd-in-eclipse-with-your-own.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3432991450418847935?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3432991450418847935?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/3Oa6Ts77-CE/customize-pmd-in-eclipse-with-your-own.html" title="Customize PMD in Eclipse with your own rules" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-trfZNxv1qY0/TfSDaTl_cMI/AAAAAAAABzE/xJoKXjNQaWU/s72-c/Rule+Designer+-+Empty.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/06/customize-pmd-in-eclipse-with-your-own.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EER3o_fip7ImA9WhZVFkg.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2428278430718059040</id><published>2011-05-29T11:00:00.016+02:00</published><updated>2011-05-29T11:00:06.446+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-29T11:00:06.446+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>EclipseLink - JPA Queries optimization - @JoinFetch, @BatchFetch and Query Hints</title><summary type="html">@JoinFetch is very helpful when you try to minimize the number of SQL queries standing behind JPA query. I wrote about it in one of my previous posts: JPA Demystified (episode 1) - @OneToMany and @ManyToOne mappings, but it brings also some threats (see JPA - insert instead of update). This post will describe one of them, related to limiting number of results returned by JPA query.

Let's use &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/lfpx6uJyEWg" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2428278430718059040/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/05/eclipselink-jpa-queries-optimization.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2428278430718059040?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2428278430718059040?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/lfpx6uJyEWg/eclipselink-jpa-queries-optimization.html" title="EclipseLink - JPA Queries optimization - @JoinFetch, @BatchFetch and Query Hints" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/05/eclipselink-jpa-queries-optimization.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEDSXY_eyp7ImA9WhZWE0w.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-5265553976431787608</id><published>2011-05-12T07:48:00.000+02:00</published><updated>2011-05-13T22:31:18.843+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-13T22:31:18.843+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>@OneToOne with shared primary key</title><summary type="html">A Friend of mine asked me lately how would I define @OneToOne mapping in JPA with shared primary key. Well, we will definitely need an example ;) - Suppose that we have two entities: Primus and Secundus. Both entities have primary key using Long Java type. They are related 1-1, and Secundus should use the same primary key as Primus. Let's start with following state of Primus:
@Entity
@Table(name &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/-6id5ywq8jw" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/5265553976431787608/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/05/onetoone-with-shared-primary-key.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/5265553976431787608?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/5265553976431787608?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/-6id5ywq8jw/onetoone-with-shared-primary-key.html" title="@OneToOne with shared primary key" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/05/onetoone-with-shared-primary-key.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUERX8-eip7ImA9WhZRFE4.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2347395950655816987</id><published>2011-04-10T13:00:00.005+02:00</published><updated>2011-04-10T13:50:04.152+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-10T13:50:04.152+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OpenJPA" /><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink" /><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>JPA and unmodifiable collections</title><summary type="html">Patrycja Węgrzynowicz (see Yon Labs / Yon Consulting) had very interesting talk on 33rd Degree Conference this year called "Patterns and Anti-Patterns in Hibernate". Inspired by this talk, I decided to verify JPA providers behavior regarding unmodifiable Collections.

I will use the same Employer - Employee - Benefit model as in my previous JPA posts (ex. JPA Demystified (episode 1) - @OneToMany &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/zGaTTrw-Apk" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2347395950655816987/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/04/jpa-and-unmodifiable-collections.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2347395950655816987?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2347395950655816987?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/zGaTTrw-Apk/jpa-and-unmodifiable-collections.html" title="JPA and unmodifiable collections" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>4</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/04/jpa-and-unmodifiable-collections.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8FRXo-fCp7ImA9WhZSF08.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-8352739028459592462</id><published>2011-04-02T08:00:00.010+02:00</published><updated>2011-04-02T08:13:34.454+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-02T08:13:34.454+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="debugger" /><category scheme="http://www.blogger.com/atom/ns#" term="NSLog" /><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C" /><title>NSObject - description method</title><summary type="html">I believe that all Java Developers, using debugger from time to time, are appreciating toString method in Object class :) - probably the same feelings share all Objective-C Developers who know NSObject's description method.

In short, this method returns a string that represents the content of the receiving class, by default it is something like this:
&amp;lt;Card: 0x4b64c90&amp;gt;Sounds mysterious for now, &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/zR4bYuF_N8w" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/8352739028459592462/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/04/nsobject-description-method.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8352739028459592462?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/8352739028459592462?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/zR4bYuF_N8w/nsobject-description-method.html" title="NSObject - description method" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-afLo1SvwI7I/TZayAwTq6bI/AAAAAAAABuQ/a9iSH6iEhOk/s72-c/Print+-+Description.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/04/nsobject-description-method.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4CSHs9cSp7ImA9WhZTF0k.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-4064391284535582620</id><published>2011-03-21T23:00:00.001+01:00</published><updated>2011-03-21T23:02:49.569+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-21T23:02:49.569+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink" /><category scheme="http://www.blogger.com/atom/ns#" term="Spring WebFlow" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>Useless Flow Managed Persistence</title><summary type="html">Spring Webflow has some interesting feature called Flow Managed Persistence. In short: it allows you to change some persistent entity during the flow, and merge the state of entity into persistence context at the end of the flow.

Sounds interesting, and is worth trying for sure :) - but you have to be aware, that Spring Webflow guys have overlooked something very important. The &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/7Su5xYgwyRs" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/4064391284535582620/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/03/useless-flow-managed-persistence.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/4064391284535582620?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/4064391284535582620?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/7Su5xYgwyRs/useless-flow-managed-persistence.html" title="Useless Flow Managed Persistence" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/03/useless-flow-managed-persistence.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4CRXY8eCp7ImA9Wx9aE0w.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-6036911752506246497</id><published>2011-03-05T09:00:00.003+01:00</published><updated>2011-03-05T09:16:04.870+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-05T09:16:04.870+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Mockito" /><category scheme="http://www.blogger.com/atom/ns#" term="JUnit" /><title>Spring @Autowired, JUnit and Mockito</title><summary type="html">Few days ago I've encountered interesting problem with autowiring Mockito based Spring Framework beans, let me share it with you :)

Everything started when I've made JUnit test for some business logic code.
...
import static junit.framework.Assert.assertNotNull;
...
@ContextConfiguration({ "classpath:.../business-logic.xml", "classpath:.../orm-jpa.xml",
"classpath:.../test/mockito.xml", ... })
&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/ewIhg-cuDSU" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/6036911752506246497/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/03/spring-junit-and-mockito.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6036911752506246497?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/6036911752506246497?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/ewIhg-cuDSU/spring-junit-and-mockito.html" title="Spring @Autowired, JUnit and Mockito" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/03/spring-junit-and-mockito.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4FR304fSp7ImA9Wx9bEUQ.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-3685584493194694260</id><published>2011-02-20T09:00:00.011+01:00</published><updated>2011-02-20T10:25:16.335+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-20T10:25:16.335+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OCUnit" /><category scheme="http://www.blogger.com/atom/ns#" term="Unit Test" /><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C" /><title>Test me to the end of code</title><summary type="html">Those who know me may think I'm Javaholic - well, maybe a little ;) - but I do like other programming languages too :) - really :) - below you may find results of my small experiment with XCode 4, Objective-C categories and Unit Tests.

I've started with the idea of extending NSArray class with method returning an array with shuffled elements, which can be achieved using Objective-C categories [1&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/IIOVdf37McE" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/3685584493194694260/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/02/test-me-to-end-of-code.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3685584493194694260?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/3685584493194694260?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/IIOVdf37McE/test-me-to-end-of-code.html" title="Test me to the end of code" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-3c3SzdMofFw/TWC0zbj6hhI/AAAAAAAABtI/d7Mkoc29rsA/s72-c/Create+Static+Library.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/02/test-me-to-end-of-code.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8EQnc-eip7ImA9Wx9VE0o.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2797812668328205186</id><published>2011-01-30T08:00:00.005+01:00</published><updated>2011-01-30T08:00:03.952+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-30T08:00:03.952+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="STS" /><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse" /><title>STS - @RequestMappings View</title><summary type="html">Sometimes I wonder if I really know the tools lurking beneath the surface of my Eclipse IDE ;) - today I've discovered @RequestMappings View - part of SpringSource Tool Suite (STS). I know, you probably use it for centuries already ;) - but for me it was really nice surprise :) - The rest of this post is for all the developers having feeling that there should be something like that, but still &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/RIOPzR9zGB0" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2797812668328205186/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/01/sts-requestmappings-view.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2797812668328205186?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2797812668328205186?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/RIOPzR9zGB0/sts-requestmappings-view.html" title="STS - @RequestMappings View" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_JoFLgvb0c-I/TUP9Q0gfqfI/AAAAAAAABsA/YCge8bWWC2M/s72-c/Window+-+Show+View+-+Other.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/01/sts-requestmappings-view.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4FQ3wyfip7ImA9Wx9VEkU.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-4649337620789285025</id><published>2011-01-29T08:55:00.005+01:00</published><updated>2011-01-29T08:58:32.296+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-29T08:58:32.296+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSON" /><category scheme="http://www.blogger.com/atom/ns#" term="jQuery" /><title>jQuery Templates and JSON</title><summary type="html">Imagine the Web Application executing some functionality on the server using AJAX and processing data returned in JSON format. Very often such a processing is also updating UI with the provided data - recently we gained a powerful ally in this task - jQuery Templates.

This post will give you quick example of using jQuery Templates. We will focus on the client side of this process, assuming that &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/I_lz-173Yso" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/4649337620789285025/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/01/jquery-templates-and-json.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/4649337620789285025?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/4649337620789285025?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/I_lz-173Yso/jquery-templates-and-json.html" title="jQuery Templates and JSON" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_JoFLgvb0c-I/TUPDkEl0IuI/AAAAAAAABr4/Ok_eAgiH8Bg/s72-c/Before+AJAX+Call.png" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/01/jquery-templates-and-json.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUARX07fSp7ImA9Wx9WEEo.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2128785878764040313</id><published>2011-01-15T07:30:00.010+01:00</published><updated>2011-01-15T07:50:44.305+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-15T07:50:44.305+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><title>Spring - Using Beans in HTTP Servlet</title><summary type="html">So you want to use your beautiful and shining Spring Beans in ugly and ordinary HTTP Servlet? Don't be ashamed ;) Sometimes we all have to do it, and we do it in many different ways ;) Below you may find few examples.

Old-fashioned way :) - used by me till some beautiful Thursday morning ...
public class BeanTest extends HttpServlet {

    private EmployerManager employerManager;

    @Override
&lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/BxElh6hkm-o" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2128785878764040313/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/01/spring-using-beans-in-http-servlet.html#comment-form" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2128785878764040313?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2128785878764040313?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/BxElh6hkm-o/spring-using-beans-in-http-servlet.html" title="Spring - Using Beans in HTTP Servlet" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>9</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/01/spring-using-beans-in-http-servlet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUEQ389fip7ImA9WhRaFkg.&quot;"><id>tag:blogger.com,1999:blog-6474777515149871807.post-2003068696518326410</id><published>2011-01-09T11:00:00.001+01:00</published><updated>2012-02-19T12:50:02.166+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-19T12:50:02.166+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><title>Spring MVC - Session Attributes handling</title><summary type="html">Spring Framework 2.5 has introduced annotation based programming model for MVC Controllers. Spring Framework 3 has made next step, and deprecated widely used SimpleFormController. Now we are all doomed to use annotations ;) but do we really understand what is going on behind the scenes?

Let's take a look at the @SessionAttributes and SessionStatus today :) If you are not familiar with them, you &lt;img src="http://feeds.feedburner.com/~r/vard-lokkur/~4/3NTEdqoVsSI" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://vard-lokkur.blogspot.com/feeds/2003068696518326410/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://vard-lokkur.blogspot.com/2011/01/spring-mvc-session-attributes-handling.html#comment-form" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2003068696518326410?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6474777515149871807/posts/default/2003068696518326410?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vard-lokkur/~3/3NTEdqoVsSI/spring-mvc-session-attributes-handling.html" title="Spring MVC - Session Attributes handling" /><author><name>varð-lokkur (warlock)</name><uri>http://www.blogger.com/profile/08196109352954198217</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>8</thr:total><feedburner:origLink>http://vard-lokkur.blogspot.com/2011/01/spring-mvc-session-attributes-handling.html</feedburner:origLink></entry></feed>
