I'd do what Hardy proposes. JPA/ORM does not give you the list of packages, nor does it scan for annotations outside @Entity classes.