THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Some example output might look like the following. Here we illegally add some annotations to the "Movies" bean's interface as well as use the wrong annotations for various types of injection:
Code Block | ||||
---|---|---|---|---|
| ||||
ERROR - FAIL ... Movies: @Stateful cannot be applied to an interface: org.superbiz.injection.jpa.Movies ERROR - FAIL ... Movies: Missing required "type" attribute on class-level @Resource usage ERROR - FAIL ... Movies: Mistaken use of @Resource on an EntityManagerFactory reference. Use @PersistenceUnit for ref "org.superbiz.injection.jpa.MoviesImpl/entityManagerFactory" ERROR - FAIL ... Movies: Mistaken use of @PersistenceUnit on an EntityManager reference. Use @PersistenceContext for ref "org.superbiz.injection.jpa.MoviesImpl/entityManager" WARN - WARN ... Movies: IgnoringInoring @RolesAllowed used on interface org.superbiz.injection.jpa.Movies method deleteMovie. Annotation only usable on the bean class. WARN - WARN ... Movies: Ignoring @TransactionAttribute used on interface org.superbiz.injection.jpa.Movies method addMovie. Annotation only usable on the bean class. |
...