I have a table in DB as below.It accessing through JAVA(JPA) ID | Name | Parent_id 1 | Ann | NULL 2 | Mary | 1 3 | John | 2 4 | Joshep| 2 5 | Peter | NULL 6 | Jeni |5
Query query=entityManager.createQuery("DELETE FROM Table e WHERE e.id = :id "); query.setParameter("id", 1); int count=query.executeUpdate();
Quote:This executeUpdate method is specified by the executeUpdate method in the java.sql.Statement interface. If executing a stored procedure results in an update count that is greater than one, or that generates more than one result set, use the execute method to execute the stored procedure.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)