Thought I've bookmarked this a long time ago... "With the adoption of Java™ 5 generics, the idea of a generic typesafe Data Access Object (DAO) implementation has become feasible. In this article, system architect Per Mellqvist presents a generic DAO implementation class based on Hibernate. He then shows you how to use Spring AOP introductions to add a typesafe interface to the class for query execution."
About
AutoDAO is a Generic DAO on steroids implementation for Java.
This project was inspired by Don't repeat the DAO! article by Per Mellqvist.
Main features
* Ready to use CRUD operations
* Zero persistence code for common DAO queries
* Annotation-driven auto-configuration
* Spring Framework custom namespace for easy to use configuration
* Hibernate/JPA support
Fast Code is a free eclipse plugin designed to help write code faster in a spring based applications. But it can be configured to work with many other kinds of applications as well.
Description
In a typical multi tiered application, there are lot of similar code. E.g in a struts application with spring hibernate backend, you have to create FooAction, FooService and FooDAO for every domain object Foo. Besides this, there will be quite a few configuration files. Typing them all manually takes time, gives you carpal tunnel, and is error prone.
To use this plugin, please download the jar file from the download link above. Once downloaded, put it in the plugins folder of your eclipse installation directory and restart eclipse.
As also described in the Hibernate book from King and Bauer: "With the adoption of Java™ 5 generics, the idea of a generic typesafe Data Access Object (DAO) implementation has become feasible. In this article, system architect Per Mellqvist presents a generic DAO implementation class based on Hibernate. He then shows you how to use Spring AOP introductions to add a typesafe interface to the class for query execution."