Compare bean generation tools
Java
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt Setup project Sep 16, 2016
NOTICE.txt
README.md README add FreeBuilder & zerobuilder Oct 5, 2016
pom.xml Add Joda-Beans light bean example Feb 8, 2017

README.md

Compare bean generation tools

Repository used to compare various bean generation tools. Relates to talk CON8257 at JavaOne 2016, however it is generally useful for comparing generation tool.

A bean is intended to be a data object with getters, equals, hashCode and toString generated, see the original JavaBean specification. A mutable bean has setters to allow the data to be mutated. However, most of the projects here generate immutable beans, which have builders and/or withers instead of setters. In Java 8, I personally recommend develpopers to start moving to immutable data objects throughout their system.

This project compares the following projects:

There are other "Bean" APT code generators (not currently used in this project):

Many other code generation tools exist for Java. This list is not exhaustive:

Installing

To install this project in Eclipse and get it to compile, you need:

  • The M2E Maven plugin
  • The M2E APT plugin (update site)
  • Go to preferences and change "Maven/Annotation Processing" to "Automatically configure"
  • Refresh the project using right-click "Maven/Update project"

Pull requests

Feel free to raise a Pull Request if there is another bean-generation project that I have missed.