Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Before
- public void createEntityManagerFactory() throws IOException {
- final Properties p = new Properties();
- p.load(getClass().getResourceAsStream("/inmemory.properties"));
- emf = Persistence.createEntityManagerFactory("default", p);
- }
- /**
- * Injected persistence context.
- */
- @PersistenceContext
- private EntityManager em;
Add Comment
Please, Sign In to add comment