package dhbw.verteiltesysteme.quizduell.server.model;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public enum Database {
    ENTITY_MANAGER(Persistence.createEntityManagerFactory("emf"));

    private EntityManager entityManager;

    Database(EntityManagerFactory factory) {
        this.entityManager = factory.createEntityManager();
    }
}

@@ -205,22 +205,16 @@
     
-ENTITY_MANAGER
+INSTANCE
 (Per
@@ -301,16 +301,99 @@
 nager;%0A%0A
+    public EntityManager getEntityManager() %7B%0A        return entityManager;%0A    %7D%0A%0A
     Data

Refactor name