Hibernate generates the SQL statement strings and executes them against the database using the JDBC prepare and execute operations.
Hibernate生成sql语句字符串并使用JDBC准备和执行操作在数据库中执行它们。
Later, when your Hibernate client applications create a "session" to wrap the JDBC connection, Hibernate will consult this file and transparently connect to the specified database.
以后当Hibernate客户应用程序创建“session”包装JDBC连接时,Hibernate将查询该文件并透明地连接到指定的数据库。
If a service layer method deals with only read-only data, you can mark its transaction as read-only, which is a hint to optimize Hibernate and the underlying JDBC driver.
如果一个服务层方法只处理只读数据,可以将它的事务标为只读,这是优化Hibernate和底层JDBC驱动的一个方法。
应用推荐