• <bdo id='F0rnK'></bdo><ul id='F0rnK'></ul>

      <small id='F0rnK'></small><noframes id='F0rnK'>

      <tfoot id='F0rnK'></tfoot>

    1. <i id='F0rnK'><tr id='F0rnK'><dt id='F0rnK'><q id='F0rnK'><span id='F0rnK'><b id='F0rnK'><form id='F0rnK'><ins id='F0rnK'></ins><ul id='F0rnK'></ul><sub id='F0rnK'></sub></form><legend id='F0rnK'></legend><bdo id='F0rnK'><pre id='F0rnK'><center id='F0rnK'></center></pre></bdo></b><th id='F0rnK'></th></span></q></dt></tr></i><div id='F0rnK'><tfoot id='F0rnK'></tfoot><dl id='F0rnK'><fieldset id='F0rnK'></fieldset></dl></div>

        <legend id='F0rnK'><style id='F0rnK'><dir id='F0rnK'><q id='F0rnK'></q></dir></style></legend>

        JPA 2.0 Provider Hibernate 3.6 for DB2 v9.5 type 2 驱动程序

        时间:2023-09-30

            <tbody id='YjLOo'></tbody>

            • <small id='YjLOo'></small><noframes id='YjLOo'>

              <legend id='YjLOo'><style id='YjLOo'><dir id='YjLOo'><q id='YjLOo'></q></dir></style></legend>

              <tfoot id='YjLOo'></tfoot>
              <i id='YjLOo'><tr id='YjLOo'><dt id='YjLOo'><q id='YjLOo'><span id='YjLOo'><b id='YjLOo'><form id='YjLOo'><ins id='YjLOo'></ins><ul id='YjLOo'></ul><sub id='YjLOo'></sub></form><legend id='YjLOo'></legend><bdo id='YjLOo'><pre id='YjLOo'><center id='YjLOo'></center></pre></bdo></b><th id='YjLOo'></th></span></q></dt></tr></i><div id='YjLOo'><tfoot id='YjLOo'></tfoot><dl id='YjLOo'><fieldset id='YjLOo'></fieldset></dl></div>
              • <bdo id='YjLOo'></bdo><ul id='YjLOo'></ul>
                  本文介绍了JPA 2.0 Provider Hibernate 3.6 for DB2 v9.5 type 2 驱动程序在配置准备中抛出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  JPA 2.0 Provider Hibernate 在为实体管理器工厂准备配置时抛出异常,我使用的是 DB2 v9.5 数据库和 DB2 v9.5 JDBC type 2 驱动程序.

                  The JPA 2.0 Provider Hibernate is throwing exception while preparing configuration for entity manager factory, I am using DB2 v9.5 database and DB2 v9.5 JDBC type 2 driver .

                  java.sql.SQLException: [IBM][JDBC Driver] CLI0626E  getDatabaseMajorVersion is not supported in this version of DB2 JDBC 2.0 driver.
                   at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwNotSupportedByDB2(Unknown Source)
                   at COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.getDatabaseMajorVersion(Unknown Source)
                   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)
                   at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2833)
                   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2829)
                   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840)
                   at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:902)
                   at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
                   at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
                   at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32)

                  推荐答案

                  看代码:有一个未记录的hibernate.temp.use_jdbc_metadata_defaults属性,设置为false 可能会有所帮助:

                  From looking at the code: there is an undocumented hibernate.temp.use_jdbc_metadata_defaults property, setting it to false may help if you can't change JDBC driver:

                  <property name = "hibernate.temp.use_jdbc_metadata_defaults" value = "false" />
                  

                  这篇关于JPA 2.0 Provider Hibernate 3.6 for DB2 v9.5 type 2 驱动程序在配置准备中抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                • <legend id='ByHV6'><style id='ByHV6'><dir id='ByHV6'><q id='ByHV6'></q></dir></style></legend>
                    <bdo id='ByHV6'></bdo><ul id='ByHV6'></ul>

                        <tbody id='ByHV6'></tbody>

                      • <small id='ByHV6'></small><noframes id='ByHV6'>

                        <tfoot id='ByHV6'></tfoot>
                        1. <i id='ByHV6'><tr id='ByHV6'><dt id='ByHV6'><q id='ByHV6'><span id='ByHV6'><b id='ByHV6'><form id='ByHV6'><ins id='ByHV6'></ins><ul id='ByHV6'></ul><sub id='ByHV6'></sub></form><legend id='ByHV6'></legend><bdo id='ByHV6'><pre id='ByHV6'><center id='ByHV6'></center></pre></bdo></b><th id='ByHV6'></th></span></q></dt></tr></i><div id='ByHV6'><tfoot id='ByHV6'></tfoot><dl id='ByHV6'><fieldset id='ByHV6'></fieldset></dl></div>