Hi.
What is essential difference between these methods?
query() of JdbcTemplate and createQuery() of EntityManager?
As I understand, both execute query?
Hi.
What is essential difference between these methods?
query() of JdbcTemplate and createQuery() of EntityManager?
As I understand, both execute query?
JdbcTemplate.query()
executes a raw SQL query via Spring's JDBC API
EntityManager.createQuery()
creates, but does not execute, a JPA query, via the native JPA API.
Same end result, very different mechanism.