01: package org.vraptor.plugin.jpa;
02:
03: import javax.persistence.EntityManager;
04: import javax.persistence.PersistenceContext;
05:
06: import org.vraptor.annotations.Component;
07:
08: /**
09: * @author Fabio Correia Kung
10: *
11: */
12: @Component
13: public class WithoutTransaction {
14: @PersistenceContext
15: private EntityManager entityManager;
16:
17: @Transaction
18: public void logic() {
19: }
20:
21: public EntityManager getEntityManager() {
22: return this.entityManager;
23: }
24: }
|