simple codes(see attachment), failed.
DELETE queries should not be run with getSingleResult (which is for SELECT queries).
Use executeUpdate instead. See this manual page.