Categories
Development

DAO Layer

Getting the DAO layer right isn’t as easy as one might think. Especially with stateful persistence techonlogies like Hibernate and TopLink. There is a good article on the Hibernate blog here on how to do this in Java 5. For those of us still using 1.4 at least the standard operations is good input for designing our DAOs the old way.

One reply on “DAO Layer”

[…] I linked to an article outlining a generic DAO design a little while back. It had some good points, but today as I was reading some mail from the Domain Driven Design group I started thinking again. One of the guys there suggested to view the Repository/DAO as a collection. You can’t just narrow it to that, but you could grab the base concepts. It would provide methods something like this: […]

Leave a Reply

Your email address will not be published. Required fields are marked *