日期:2014-05-17  浏览次数:21641 次

hibernate连接DB2报下面异常,虽然不影响次昂程序运行,但是还是希望能够消除这个警告信息,请高人指点,小弟非常感谢!
2007-12-25 17:00:31,328 INFO [org.springframework.jdbc.datasource.JdbcTransactio
nObjectSupport] - <JDBC 3.0 Savepoint class is available>
2007-12-25 17:00:31,453 INFO [org.springframework.beans.factory.xml.XmlBeanDefin
itionReader] - <Loading XML bean definitions from class path resource [org/sprin
gframework/jdbc/support/sql-error-codes.xml]>
2007-12-25 17:00:31,468 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'DB2'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'HSQL'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'MS-SQL'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'MySQL'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'Oracle'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'Informix'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'PostgreSQL'>
2007-12-25 17:00:31,484 INFO [org.springframework.beans.factory.support.DefaultL
istableBeanFactory] - <Creating shared instance of singleton bean 'Sybase'>
2007-12-25 17:00:31,484 INFO [org.springframework.jdbc.support.SQLErrorCodesFact
ory] - <SQLErrorCodes loaded: [DB2, HSQL, MS-SQL, MySQL, Oracle, Informix, Postg
reSQL, Sybase]>
Hibernate: select webxxlm0_.LMID as LMID25_, webxxlm0_.LMMC as LMMC25_, webxxlm0
_.LMMS as LMMS25_, webxxlm0_.ZT as ZT25_, webxxlm0_.LMSX as LMSX25_ from WEB_XXL
M webxxlm0_ where 1=1 and webxxlm0_.ZT='1' order by webxxlm0_.LMSX
2007-12-25 17:00:32,390 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL W
arning: 0, SQLState: null>
2007-12-25 17:00:32,390 WARN [org.hibernate.util.JDBCExceptionReporter] - <[ibm]
[db2][jcc][10217][10310] 已经建立连接之后未强制实施连接只读方式。
要强制实施只读连接,应设置只读数据源或连接属性。>
Hibernate: select count(*) as col_0_0_ from WEB_FBXXB webfbxxb0_ where webfbxxb0
_.LMID='40288aab16dfbc050116d632ca360004'
2007-12-25 17:00:32,437 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL W
arning: 0, SQLState: null>
2007-12-25 17:00:32,437 WARN [org.hibernate.util.JDBCExceptionReporter] - <[ibm]
[db2][jcc][10217][10310] 已经建立连接之后未强制实施连接只读方式。
要强制实施只读连接,应设置只读数据源或连接属性。>
Hibernate: select count(*) as col_0_0_ from WEB_FBXXB webfbxxb0_ where webfbxxb0
_.LMID='40288aab16db06200116db84cfa40001'
2007-12-25 17:00:32,453 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL W
arning: 0, SQLState: null>
2007-12-25 17:00:32,453 WARN [org.hibernate.util.JDBCExceptionReporter] - <[ibm]
[db2][jcc][10217][10310] 已经建立连接之后未强制实施连接只读方式。
要强制实施只读连接,应设置只读数据源或连接属性。>
Hibernate: select count(*) as col_0_0_ from WEB_FBXXB webfbxxb0_ where webfbxxb0
_.LMID='40288aab16db06200116db852e7d0003'
2007-12-25 17:00:32,468 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL W
arning: 0, SQLState: null>
2007-12-25 17:00:32,468 WARN [org.hibernate.util.JDBCExceptionReporter] - <[ibm]
[db2][jcc][10217][10310] 已经建立连接之后未强制实施连接只读方式。
要强制实施只读连接,应设置只读数据源或连接属性。>
Hibernate: select count(*) as col_0_0_ from WEB_FBXXB webfbxxb0_ where webfbxxb0
_.LMID='40288aab16dfbc050116d632467f0002'