There should be a checkstyle plugin for JPA Entities. There is a lot of things they can check, among the things I'd like is to scan the entity for @Id and @Version-tags which I have made mandatory in my project. I'm sure there are a lot of other tags people would and wouldn't like the plugin to scan for. It should be highly configurable.
Log in to post a comment.