@@ -0,0 +1,788 @@
+package io.evilkhaoskat.tests;%0A%0Aimport io.evilkhaoskat.tests.entity.Employee;%0A%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.EntityManagerFactory;%0Aimport javax.persistence.Persistence;%0A%0Aimport static io.evilkhaoskat.tests.Constants.ID_1;%0A%0Apublic class DeleteEmployee %7B%0A    public static void main(String%5B%5D args) %7B%0A        EntityManagerFactory factory = Persistence.createEntityManagerFactory(Constants.PERSISTENCE_UNIT_NAME);%0A        EntityManager entitymanager = factory.createEntityManager();%0A%0A        entitymanager.getTransaction().begin();%0A%0A        Employee employee = entitymanager.find(Employee.class, ID_1);%0A        entitymanager.remove(employee);%0A%0A        entitymanager.getTransaction().commit();%0A%0A        entitymanager.close();%0A        factory.close();%0A    %7D%0A%7D

Delete Employee logic