spring boot entitymanagerfactory code example
Example 1: spring boot entitymanager example
entityManager.getTransaction().begin();
entityManager.remove(emp);
entityManager.getTransaction().commit();
Example 2: spring boot entitymanager example
//Select Query
List<Employee> emplList= entityManager.createQuery("SELECT e FROM Employee e").getResultList();
Example 3: spring boot entitymanager example
List<Employee> emplList= entityManager.createQuery("SELECT UPPER(e.name) FROM Employee e").getResultList();