The aim of this query is to point out violations of the following rule: an entity-bean class must be a top-level class.
Pre-packaged Query
Query name="Semmle/StyleChecks/J2EE/Entity-Bean/All entity-beans must be top-level"
Reports all Entity-Bean types that are not top-level (i.e. are nested classes).
from EnterpriseBean ebean
where ebean instanceof NestedClass
select ebean, ebean.toString() + " entity-bean must be top-level"
References
Enterprise JavaBeans 2.1 - Specification, section 10.6.2 and 12.2.2
|