I created the OpenPojo project for solving this exact problem.
The project allows you to validate:
- Enforce Pojo coding standard (i.e. All fields private, or no native variables, …etc)
- Enforce Pojo behaviour (i.e. setter does JUST setting, no transformation, etc)
- Validate Pojo Identity (i.e. Use annotation based equality & hashcode generation)
See Tutorial