http://bderzhavets.blogspot.com/2006...using-jpa.html