需要连接的数据库名称 var db_name
要连接的数据库必须在本地DB2(客户机)实例中编目。
The database you want to connect to must be cataloged in the local DB2 (client) instance.
延迟抓取的另一个问题就是在获取到请求的数据前要一直打开数据库连接,否则应用就会抛出一个延迟加载异常。
Another issue with lazy fetching is that the database connection has to be retained until all the required data is fetched else the application will throw a lazy loading exception.
如果您使用本指南作为学校课程的一部分,那么可以向老师询问要连接到的数据库的名称。
Find out from your instructor the database name that you will need to be connected to.
应用推荐