Skip to content

Instantly share code, notes, and snippets.

View nobodyiam's full-sized avatar
:electron:
Coding

Jason Song nobodyiam

:electron:
Coding
View GitHub Profile
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.jpa.EntityManagerFactoryAccessor;
import org.springframework.orm.jpa.EntityManagerFactoryUtils;
import org.springframework.orm.jpa.EntityManagerHolder;
import org.springframework.stereotype.Component;
import org.springframework.transaction.support.TransactionSynchronizationManager;
@Component
public class EntityManagerUtil extends EntityManagerFactoryAccessor {