-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Generic DAO design feedback
PostPosted: Wed Feb 25, 2009 8:08 am 
Newbie

Joined: Sun Dec 07, 2008 1:29 pm
Posts: 6
Hello,

I have been working on a DAO design focusing primarily in maximizing the quality of the client code (maintainability, portability, etc) and trying to overcome many of the design issues (from the Software Engineering prospective) I found in many other attempts e.g.

- Possibility to have a pure JPA DAO base implementation that can be extended to provide non-JPA features e.g. extended by an specialized Hibernate that offers extra Criteria API support. The main issues here were the mismatching abstractions between pure JPA and native implementations.

- There are several ways to obtain and manage Sessions and Transactions, the aim of this design is to stay away from approaches that use Utility classes.

- Portability across different JPA implementations e.g. switching the DAO from a TopLink implementation to a Hibernate implementation should take only to use a different concrete initial Abstract Factory.

There are several examples that can be browsed online e.g. DAO pure JPA in EJB, Hibernate on JSE, Spring on JSE.

The UML design, downloads and links to xref sources can be found here:
http://perfectjpattern.sourceforge.net/ ... icdao.html

I will appreciate any feedback.

Best regards,
Giovanni


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.