<?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-6474777515149871807</id><updated>2025-11-01T15:37:21.893+01:00</updated><category term="JPA"/><category term="Spring Framework"/><category term="Hibernate"/><category term="EclipseLink"/><category term="JSON"/><category term="Eclipse"/><category term="JMX"/><category term="Jackson"/><category term="Performance"/><category term="VisualVM"/><category term="BDD"/><category term="FindBugs"/><category term="JPQL"/><category term="Objective-C"/><category term="OpenJPA"/><category term="Profiling"/><category term="Projection"/><category term="EasyB"/><category term="Geolocation"/><category term="JBehave"/><category term="JBoss"/><category term="JBoss Modules"/><category term="JDBC"/><category term="JSR-305"/><category term="JUnit"/><category term="Mockito"/><category term="NSLog"/><category term="OCUnit"/><category term="Oracle"/><category term="PMD"/><category term="QA"/><category term="STS"/><category term="Selenium 2"/><category term="Serialization"/><category term="Spring Boot"/><category term="Spring Security"/><category term="Spring WebFlow"/><category term="Thucydides"/><category term="UI"/><category term="Unit Test"/><category term="XLS"/><category term="debugger"/><category term="jQuery"/><title type='text'>Warlock&#39;s Thoughts</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vard-lokkur.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.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'/><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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6474777515149871807.post-637608032646975050</id><published>2019-10-15T18:17:00.000+02:00</published><updated>2019-11-01T13:42:00.000+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Boot"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="XLS"/><title type='text'>Spring MVC - HTTP message converter</title><summary type="text">Quite often you need to provide users with the same data, but in different forms, like JSON, PDF, XLS, etc. If your application is Spring Framework based, this task can be achieved using HTTP message converters.

HTTP message converters are applied when HTTP request (or its parts) needs to be converted into type required for handler method argument (see: Handler methods - method arguments), or </summary><link rel='replies' type='application/atom+xml' href='http://vard-lokkur.blogspot.com/feeds/637608032646975050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vard-lokkur.blogspot.com/2019/10/spring-mvc-http-message-converter.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/637608032646975050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/637608032646975050'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2019/10/spring-mvc-http-message-converter.html' title='Spring MVC - HTTP message converter'/><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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6474777515149871807.post-3773999694322831172</id><published>2019-08-03T23:25:00.000+02:00</published><updated>2019-10-12T07:54:04.412+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JDBC"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><title type='text'>JDBC - Emulating a sequence </title><summary type="text">Probably each of us encountered this problem at least once in the programmer&#39;s life - how to emulate a database sequence? Below you may find my variation of this problem&#39;s solution.

Suppose that we have an interface defining the desired API for returning a sequence of integer numbers:
public interface Sequences {

    int nextValue(String sequenceName) throws SQLException;

}
and the </summary><link rel='replies' type='application/atom+xml' href='http://vard-lokkur.blogspot.com/feeds/3773999694322831172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vard-lokkur.blogspot.com/2019/08/jdbc-emulating-sequence.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3773999694322831172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3773999694322831172'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2019/08/jdbc-emulating-sequence.html' title='JDBC - Emulating a sequence '/><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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6474777515149871807.post-8473275213362493415</id><published>2014-06-15T18:00:00.000+02:00</published><updated>2014-06-15T18:09:45.762+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Serialization"/><title type='text'>Serialization Proxy Pattern example</title><summary type="text">There are books, which change your life immensely. One of such books is &quot;Effective Java&quot; by Joshua Bloch. Below you may find small experiment, which was inspired by Chapter 11 of this book - &quot;Serialization&quot;.

Suppose that we have a class designed for inheritance, which is not Serializable itself, and has no parameterless constructor, like in this example:
public class CumbersomePoint {

    </summary><link rel='replies' type='application/atom+xml' href='http://vard-lokkur.blogspot.com/feeds/8473275213362493415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vard-lokkur.blogspot.com/2014/06/serialization-proxy-pattern-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8473275213362493415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8473275213362493415'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2014/06/serialization-proxy-pattern-example.html' title='Serialization Proxy Pattern 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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6474777515149871807.post-3705786598329851730</id><published>2014-05-04T17:30:00.000+02:00</published><updated>2014-05-04T17:46:02.718+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><title type='text'>@OneToOne with shared primary key, revisited :)</title><summary type="text">Long time ago, I wrote a post @OneToOne with shared primary key. Today I would like to return to this problem, with solution based on @MapsId annotation introduced in JPA 2.0

Again 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.
3 Years after my initial post they will </summary><link rel='replies' type='application/atom+xml' href='http://vard-lokkur.blogspot.com/feeds/3705786598329851730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vard-lokkur.blogspot.com/2014/05/onetoone-with-shared-primary-key.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3705786598329851730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3705786598329851730'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2014/05/onetoone-with-shared-primary-key.html' title='@OneToOne with shared primary key, revisited :)'/><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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Projection"/><title type='text'>JPA - Querydsl Projections</title><summary type="text">In my last post: JPA - Basic Projections - I&#39;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&#39;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 </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/5150855802336729028'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2013/05/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Projection"/><title type='text'>JPA - Basic Projections</title><summary type="text">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&#39; 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 </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8705385177952987283'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2013/05/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>JPA - Should I become a laziness extremist?</title><summary type="text">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: &quot;Let&#39;s drop this technology at all, we&#39;ve seen something much better on the conference last month. We will use it in our projects instead of JPA and develop them</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3867277841661300866'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2013/04/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNFOnnAwyjCGoROaa_dGF0Oi3Iw731mqsy2LOU0w5xH0sxtSPAaBVsNFxlG0d1Iya4PUEGjciykn3sTaI3TuAt3QOy1yRhZft0dwzwOGPB40ZHRiewIuRbV0pl0Yo1W4oA9TrfnVrZrRzF/s72-c/diagram.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><title type='text'>JPA - Hibernate - Type mapping on package level</title><summary type="text">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&#39;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. </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/278028106194598029'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2013/04/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework"/><title type='text'>Spring&#39;s Web MVC - Redirect to the Memory Leak</title><summary type="text">They say that one rock can cause an avalanche. Lately, one of my Colleagues, Marcin Radoszewski, gave me such a rock. You&#39;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&#39;s focus on </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='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2467309653957950497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2467309653957950497'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/12/springs-web-mvc-redirect-to-memory-leak.html' title='Spring&#39;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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="JPQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>JPQL - pagination on Oracle Database with Hibernate</title><summary type="text">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&#39;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.

</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8949192333603653702'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/08/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="FindBugs"/><title type='text'>Suppressing FindBugs warnings</title><summary type="text">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&amp;nbsp;FindBugs&amp;nbsp;warnings - usage of&amp;nbsp;edu.umd.cs.findbugs.annotations.SuppressWarnings&amp;nbsp;annotation. Just add it in place where&amp;nbsp;FindBugs&amp;nbsp;reported problem, and&amp;nbsp;use </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='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3863032392127496435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3863032392127496435'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/03/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEwivZxl3xHzWEhPnQVr7cfw5p3nm_mKX-RlKeSt-I4g6unjP1s6SaJxvqXiphcnpcdh2lS02BS9cd0lGXyWnW7CQ9VCjxitxPAU6ZwDW6ztsj-RXbGKCLd_JztoG72VZ82aq_1ex_oZpK/s72-c/FindBugs+-+Error+Code.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="FindBugs"/><category scheme="http://www.blogger.com/atom/ns#" term="JSR-305"/><category scheme="http://www.blogger.com/atom/ns#" term="QA"/><title type='text'>FindBugs and JSR-305</title><summary type="text">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</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/1620512591768243677'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/03/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWpxB-QhEiKezhTXgwLJdU0Idtm71T_6f2-lC54OLiF_Yp9Pt3yeGYu-toFNUB95yRWzDsRxodlwmyi9ncOOUSqfbS1nRFG5N9Rzr_kcL7EzeqHFLrEMx_9Ig2z4YcYHsWeJyKOLGYcZgR/s72-c/Run+FindBugs.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework"/><title type='text'>Spring MVC - Flash Attributes</title><summary type="text">Latest Spring Framework incarnation (3.1) brought interesting feature called Flash Attributes.&amp;nbsp;It is remedy for the problem mentioned a long time ago, in one of my posts:&amp;nbsp;Spring MVC - Session Attributes handling.&amp;nbsp;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</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='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/736294933007187482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/736294933007187482'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/02/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="BDD"/><category scheme="http://www.blogger.com/atom/ns#" term="EasyB"/><category scheme="http://www.blogger.com/atom/ns#" term="Selenium 2"/><category scheme="http://www.blogger.com/atom/ns#" term="Thucydides"/><title type='text'>EasyB, Thucydides and Selenium 2 - another BDD example</title><summary type="text">Today I&#39;ll present you quick example of&amp;nbsp;usage for&amp;nbsp;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 </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='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2117859838889626860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2117859838889626860'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2012/01/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpfrzB8l8wUVbFqPKLFI5BmzZHfcPBDdGd2KaPew-tmgNn72ZH2d8uFkeeGoJIsPZVCgMWnwfr5608t8Cmr2_5Xw4UAjYtcTLTOnQXQD4yft6oOPzTQEKG6z4WzXyRBwJ_nrkuSb_Jm1o6/s72-c/EasyB+-+Pending+Scenario+Results.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="JBoss"/><category scheme="http://www.blogger.com/atom/ns#" term="JBoss Modules"/><title type='text'>Modular Web Application based on JBoss Modules</title><summary type="text">Recently I read Why there is no standard for developing real modular web applications?&amp;nbsp;by Patroklos Papapetrou. Inspired by this article I decided to check JBoss Modules in action. This post describes my experiment step by step.

I&#39;ve started with following goal in mind - create web application using some service defined by my own JBoss module.&amp;nbsp;Service prepared by me was pretty simple, </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/6887977132956964475'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/09/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiirqjdZSoVLnVCP8NnjN3qafkEJJH3rAO7z4ex7YGNJbtU9hoAOUL9sRn-9VNMqX_MTl6vHvDUmG0iwcWsALUQlo650r9EaOBWON2loft7B4y5GZ4P0H8w5lSw4cbscm8500kwFu9fZ_z7/s72-c/Echo+Module+-+Directory+Structure.png" height="72" width="72"/><thr:total>5</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="BDD"/><category scheme="http://www.blogger.com/atom/ns#" term="JBehave"/><title type='text'>JBehave - quick BDD example</title><summary type="text">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 ;) -&amp;nbsp;below you may find a results of my small experiments with Behavior Driven Development&amp;nbsp;and JBehave&amp;nbsp;:)

I started with Introducing BDD&amp;nbsp;and&amp;nbsp;What&#39;s in a Story?&amp;nbsp;articles by Dan North, and Alex Soto blog entry about Spring Framework,</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='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/6756619537602703250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/6756619537602703250'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/08/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2sETMLYdpNSq4mJnUl3xUY2m9FnAR8tUW44ePnN7PZsSADRKvemNRwf3_-Z3uLmyP2bBCHnw-iJ5reLfb_Nw3scFdgcVsOPuQ_FVqnx_Ql4Chj_i2eqzCdpL6QCQ08-HqRejl5sKoAyfc/s72-c/JBehave+Report.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><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><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"/><category scheme="http://www.blogger.com/atom/ns#" term="JPQL"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenJPA"/><title type='text'>JPQL and joins</title><summary type="text">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&#39;s take a look at very simple example, we have Person entity:
@Entity
@Table(name = &quot;PERSONS&quot;)
public class Person implements Serializable {

    </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8525213073167576450'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/06/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="PMD"/><title type='text'>Customize PMD in Eclipse with your own rules</title><summary type="text">PMD&amp;nbsp;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&#39;s @Enumerated annotation usage.

Before you&#39;ll continue the reading, you should check one of my previous posts - JPA - @Enumerated default attribute. When you work with the group of </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='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3432991450418847935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3432991450418847935'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/06/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfJF_toyUQ_lrPfFfYdaLxM2Z45gOOiNVnd7cfASh3L57E-8Dwe0npQP9gfoNdef84DFE1lj7zjGK1MNCba0GZ0LlyRiuM_tNAONpmgGSVnO9QCR4ZxDnr3p3xWSjK3bcJ2iq196U7wVwB/s72-c/Rule+Designer+-+Empty.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><title type='text'>EclipseLink - JPA Queries optimization - @JoinFetch, @BatchFetch and Query Hints</title><summary type="text">@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:&amp;nbsp;JPA Demystified (episode 1) - @OneToMany and @ManyToOne mappings, but it brings also some threats (see&amp;nbsp;JPA - insert instead of update). This post will describe one of them, related to limiting number of results returned by JPA query.

</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2428278430718059040'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/05/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6474777515149871807.post-5265553976431787608</id><published>2011-05-04T17:49:00.000+02:00</published><updated>2014-05-21T07:38:49.794+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><title type='text'>@OneToOne with shared primary key</title><summary type="text">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&#39;s start with following state of Primus:
@Entity
@Table(name </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='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/5265553976431787608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/5265553976431787608'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/05/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><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><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"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenJPA"/><title type='text'>JPA and unmodifiable collections</title><summary type="text">Patrycja Węgrzynowicz (see&amp;nbsp;Yon Labs&amp;nbsp;/&amp;nbsp;Yon Consulting) had very interesting talk on&amp;nbsp;33rd Degree Conference&amp;nbsp;this year called &quot;Patterns and Anti-Patterns in Hibernate&quot;. 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.&amp;nbsp;JPA </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/2347395950655816987'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/04/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><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><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 type='text'>NSObject - description method</title><summary type="text">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&#39;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 </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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/8352739028459592462'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/04/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0MHntwXAKDiQlSWai2YBod0UX4wiE2CPpGxWvSCI0ObCBpxwHRj4pbGmciX5NSWIqHJUgzV96f_Z9mAr7T-4moIB6nFGF8-L1-xB7eZmxRVSJwkYPgb2oWtWL1BcnV1_EizGPd2bI4J3R/s72-c/Print+-+Description.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="EclipseLink"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring WebFlow"/><title type='text'>Useless Flow Managed Persistence</title><summary type="text">Spring Webflow&amp;nbsp;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&amp;nbsp;Spring Webflow&amp;nbsp;guys have overlooked something very important. The&amp;</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='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/4064391284535582620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/4064391284535582620'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/03/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="JUnit"/><category scheme="http://www.blogger.com/atom/ns#" term="Mockito"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework"/><title type='text'>Spring @Autowired, JUnit and Mockito</title><summary type="text">Few days ago I&#39;ve encountered interesting problem with autowiring Mockito&amp;nbsp;based Spring Framework beans, let me share it with you :)

Everything started when I&#39;ve made JUnit test for some business logic code.
...
import static junit.framework.Assert.assertNotNull;
...
@ContextConfiguration({ &quot;classpath:.../business-logic.xml&quot;, &quot;classpath:.../orm-jpa.xml&quot;,
&quot;classpath:.../test/mockito.xml&quot;, ...</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/6036911752506246497'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/03/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><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><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="OCUnit"/><category scheme="http://www.blogger.com/atom/ns#" term="Unit Test"/><title type='text'>Test me to the end of code</title><summary type="text">Those who know me may think I&#39;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&#39;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</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'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6474777515149871807/posts/default/3685584493194694260'/><link rel='alternate' type='text/html' href='http://vard-lokkur.blogspot.com/2011/02/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='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgblRF5MSBMbniqA-mjLG0Kq1k_NC9tSO1bstKynLlKPt-Ed1OmO7OOKna6R-83qfgsd5DPUPTp5QEROpMe9TM9bu30K6yl-wKzrUsCgYBTRU6TMk7BfdiBbYTwXEjDtFBTnuuprBnqsi/s72-c/Create+Static+Library.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>