Very good question! Since your issues originate with FindBugs, you can use FindBugs exclusion filters to address this. Especially, take a look at the <Method>
exclusion. You can specify a regex that matches the method names of your getters and setters in the entity classes, such as
<Method name="~_persistence_[gs]et" />
Such a filter file can be used by all forms of FindBugs, including the Eclipse plugin and SonarQube. For example, using the SonarQube ant task, you can set the property sonar.findbugs.excludesFilters
to the absolute path to the FindBugs exclusion file.