The entity DSL is high end DSL based on Xtext to define entity models on a very comfortable way. Using this DSL will increase the code quality and the output at the same time. Based on the defined document java classes are generated on the fly.
Additionally an JPA processor way implemented, that enhances the generated entity java code by JPA annotations. The generator defaults are based on the semantics of the grammar, but each annotation can be customized quite simple.
The entity DSL will be released shortly under the EPL license and is availble from lunifera.org and https://github.com/florianpirchner.
Just take 3 minutes and have a short look at this movie.