return entityManager;
}
@Provides
public TransactionManager provideTransactionManager(final EntityManagerFactory entityManagerFactory) {
return new TransactionManager() {
@Override
public void begin() {
EntityManager entityManager = ENTITY_MANAGER_CACHE.get();
if(entityManager==null) {
entityManager = entityManagerFactory.createEntityManager();