Invalid Entity-Beans Modifiers

This query determines all the entity-beans, with container managed persistence, that have incorrect class modifiers.

Pre-packaged Query

Query name="Semmle/StyleChecks/J2EE/Entity-Bean/with Container-Managed Persistence/All entity-beans must be public and abstract"

Reports all Entity-Bean types with container managed persistence that are not public or abstract.

from EntityBean ebean
where not(ebean.hasModifier("public")) or
not(ebean.hasModifier("abstract")) select ebean, ebean.toString() + " entity-bean with container managed" + " persistence must be public and abstract"

References

Enterprise JavaBeans 2.1 - Specification, section 10.6.2

Digg!Reddit!Del.icio.us!Facebook!Slashdot!Technorati!StumbleUpon!Ma.gnolia!

Comments
Only registered users can write comments!
 
< Prev   Next >