createSQLQuery in hibernate uses Prepared Statement?

前端 未结 2 1836
刺人心
刺人心 2021-01-12 10:29

I\'m using createSQLQuery with setString (No hard coded value) in Hibernate. I want to know that is Hibernate uses PreparedStatement f

2条回答
  •  悲&欢浪女
    2021-01-12 11:22

    Hibernate SQLQuery bypasses the Hibernate Session cache and queries ONLY against the database. You can read more @ Hibernate: SQL vs HQL with the Session Cache.

提交回复
热议问题