EntityManager.find() SQL Injection safe

20 Views Asked by At

Is the EntityManager.find() SQL injection safe? I have this codes and Checkmarx complaining on SQL Injection.

`public T find(ID id) {
    return entityManager.find(persistentClass, id); 
}`

EntityManager.find() expeting this doing parameterized statement on the id. example: "Select * from Process where id = ?"

0

There are 0 best solutions below