Last time I wrote about how to
Automatically Generate Get and Set Methods with Project Lombok.
Now I'd include the Hibernate Core 3.6.7 distribution in my example project to create a simple Java entity with Lombok. Below is my example code:
In my example, I simply implements the Serializable interface and add the necessary JPA annotations to create a simplest possible entity. The Lombok project (annotation processor) will automatically generate all the boilerplate setters/getters code for us =)