Project Lombok is a recent project that exploits with Java 1.6’s APT (Annotation Processing Tool) API to generate boilerplate code from annotations. This screencast shows how Lombok can be easily used to remove the boilerplate getters and setters from a pojo domain object.
http://danhaywood.com/2009/09/13/using-project-lombok-with-naked-objects/