Does Hibernate using preparedStatement internally when native update query?

679 Views Asked by At

I have a question.

Does the JPA(Hibernate) use a preparedStatement internally when using native update query?

Query query = EntityManager.createNativeQuery(updateSql);

//... some other codes here

query.setParameter(1, "column1");
query.setParameter(2, "column2");

query.executeUpdate();

Does the updateSql pre-compiled?

0

There are 0 best solutions below