xiaobaichushan
xiaobaichushan
采纳率0%
2016-06-27 07:20

求助大神一个hibernate错误的问题

运行时报: No Dialect mapping for JDBC type: -100
这个应该怎么解决啊

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • u013240223 如果能跟着心在走 5年前

    看你数据库是什么版本的 相应的dialect 也是不一样的

    点赞 评论 复制链接分享
  • Royal_lr Royal_lr 5年前

    数据库的方言,,即dialect配的有问题,考虑换一个

    点赞 评论 复制链接分享
  • lvlang1993 lvlang1993 5年前

    没配方言。。。。。。

    点赞 评论 复制链接分享
  • xiaobaichushan xiaobaichushan 5年前

    这个是我的hibernate配置文件:
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

    <!-- a SessionFactory instance listed as /jndi/name -->
    <session-factory>
    
        <property name="hibernate.connection.provider_class">
            com.wondersgroup.falcon.hibernate.ListenableConnectionProvider
        </property>  
    
        <property name="hibernate.connection.monitor.delay">5</property>
        <property name="hibernate.connection.monitor.period">30</property>
        <property name="hibernate.connection.monitor.time">true</property>
        <property name="hibernate.connection.monitor.trace">true</property>
        <property name="hibernate.connection.monitor.timeout">6000</property>
    
        <property name="hibernate.connection.driver_class">
            oracle.jdbc.driver.OracleDriver
        </property>
        <property name="hibernate.connection.url">
            <!--     jdbc:oracle:thin:@172.16.31.22:1521:orcl-->
    
        jdbc:oracle:thin:@localhost:1521:orcl
    
        </property>
        <property name="hibernate.cglib.use_reflection_optimizer">true</property>
    
        <!--<property name="hibernate.connection.username">falcon</property>
            <property name="hibernate.connection.password">falcon</property> -->
    
        <property name="hibernate.connection.username">falcon</property>
        <property name="hibernate.connection.password">falcon</property> 
    
        <property name="hibernate.connection.pool_size">10</property>   
        <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
    
        <!-- 
        <property name="dialect">com.wondersgroup.falcon.cfg.Oracle9Dialect</property>
        -->
        <property name="show_sql">false</property>
        <!-- 
        <property name="connection.pool_size">30</property>
        -->
        <property name="hibernate.cache.use_query_cache">true</property>
        <property name="hibernate.cache.provider_class">
            org.hibernate.cache.EhCacheProvider
        </property>
        <!-- Drop and re-create the database schema on startup -->
        <property name="hbm2ddl.auto">none</property>
        <property name="hibernate.jdbc.batch_size">10</property>
        <!--<property name="hibernate.max_fetch_depth">1</property> --> 
    
    
    </session-factory>
    

    点赞 评论 复制链接分享
  • woodAstone2008 woodAstone2008 5年前
    点赞 评论 复制链接分享
  • u012539862 唐僧love飘柔 5年前

    配置数据方言了没?配置文件能贴出来吗

    点赞 评论 复制链接分享