I used the count to count the rows that are updated. when I run the following code in my program. count becomes 9 though only one record is updated in the database (oracle 11)
Query updateMyQuery = em.createNativeQuery("Query");
updateMyQuery.setParameter("empNo", empNo);
updateMyQuery.setParameter("date", date);
updateMyQuery.setParameter("flag", flag );
count = updateMyQuery.executeUpdate();
Query is working I checked in the database.
Thanks