openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Toffetti <>
Subject Re: Looking for advice on JPA based DAO
Date Fri, 17 Apr 2009 14:11:23 GMT

Hi Wes,

    Thanks you for your help, in fact I started my search after reading this article "DRY
CRUD DAOs with JPA ...and Spring" by Gregg Bolinger:

    There he makes exactly what you say and I liked the idea very much. I'm trying to mimic
that but without Spring and without Hibernate, and also with support for stored procedures.
    Besides being intranet applications that requires much of set operations as discussed
with Pinaki Poddar, and hence JPA alone is perhaps not the most appropiate approach, the other
big drawback is that our team has years of experience maintaining many legacy client server
apps mostly written in VB6.
    Starting developments in Java web applications has been slow for us and we try to keep
things simple. We choosed Wicket, IReport and a code generator that builds a DAO based on
another persistence library (that I'm trying to replace now as it closed source recently and
is not standards based). With that we released.
    Getting used to Spring and Hibernate will take some time, and I'm not even sure it they
fit our needs. I'm trying to adopt new tools (ok new for us!) at a slow pace to ease our transition.

    I'm interested to know whether you consider feasible the development of a DAO layer solely
based on JPA, that fits well with this kind of development scenario: heavy usage of stored
procedures, non-navigable but rather set based operations.

Thanks again for your help,


De: Wes Wannemacher (via Nabble) <>
Para: Daniel Toffetti <>
Enviado: viernes 17 de abril de 2009, 9:46:57
Asunto: Re: Looking for advice on JPA based DAO

On Wednesday 15 April 2009 23:07:05 Daniel Toffetti wrote: 

> Hi all, 
>     I'm looking for a JPA based DAO solution with minimal dependencies on 
> other libraries. So far I've found lots of implementations based on JPA 
> "and" Spring, Hibernate, both of them, TopLink, etc. I would like to know 
> if there is any standard way of doing it, or reference implementation (even 
> small, unfinished open source), or else if it's worth to attempt to do it. 
> Having seen so many DAO libraries and wrappers, so many articles and blog 
> posts everywhere, I must admit that I'm confused. Any advice is welcomed !! 
> Regards, 
> Daniel 
Personally, I like Spring. It is mostly inobtrusive and easy to unit test. I 
have a GenericDao I wrote and reuse. It is tied to Spring's JpaTemplate and 
DaoSupport, but it's easy and works great. If you want it, ping me off-list, 
and I'll send it over with an example spring config (with pooling 



Wes Wannemacher 
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more

This email is a reply to your post @
You can reply by email or by visting the link above.

      Yahoo! Cocina
Recetas prácticas y comida saludable
View this message in context:
Sent from the OpenJPA Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message