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将查询该文件并透明地连接到指定的数据库。
You'll note that JDBC statements do provide an accessor for their connection; however, application servers and Web application frameworks frequently use the decorator pattern to wrap JDBC connections.
您会注意到:jdbc语句确实为它们的连接提供了存取器;但是,应用程序服务器和Web应用程序框架频繁地使用修饰器模式包装JDBC连接。
You'll note that JDBC statements do provide an accessor for their connection; however, application servers and Web application frameworks frequently use the decorator pattern to wrap JDBC connections.
您会注意到:jdbc语句确实为它们的连接提供了存取器;但是,应用程序服务器和Web应用程序框架频繁地使用修饰器模式包装JDBC连接。
应用推荐