users@glassfish.java.net

JPA NamedQueries and JDBC 4.0

From: <glassfish_at_javadesktop.org>
Date: Tue, 31 Jul 2007 15:57:30 PDT

We are doing big migrations (in multiple customers) from EJB 2.0 (or hibernate) to EJB3/JPA and we are really enjoying the benefits.
But one of the issue we have with EJB2 to EJB3 is the lost of finder methods. I'm really happy about loosing the home interface but the @NamedQuery is a lot more error prone than finder methods.
So, working on this issue, JDBC 4.0 concept pop in and I managed to create a very simple Dynamic Proxy that re-implement the finder methods of EJB2 home interface using JPA NamedQueries. The code and the explanation are here: http://freddy33.blogspot.com/2007/07/jpa-namedqueries-and-jdbc-40.html

Hope it will help others.
[Message sent by forum member 'freddy33' (freddy33)]

http://forums.java.net/jive/thread.jspa?messageID=228955