Hit uncaught exception org.hibernate.HibernateException
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:378) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143) at hibernate.Hello.main(Hello.java:25)这是什么问题呀,我用JBuilder X新建立的一个hibernate程序但运行就是会出现这种异常..

解决方案 »

  1.   

    哪位大哥大姐能不能给小弟我一JBuilder编写的hibernate程序
      

  2.   

    需要在配置文件中设置Dialect
    比如我的:    <session-factory>
            <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
            <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
               </session-factory>我用的是mysql,你把它给成你自己的数据库方言!
      

  3.   

    我用的是JBuilder X开发工具写的他调用的是hibernate.properties文件内容是:hibernate.dialect org.hibernate.dialect.HSQLDialect
    hibernate.connection.driver_class org.hsqldb.jdbcDriver
    hibernate.connection.username sa
    hibernate.connection.password
    hibernate.connection.url jdbc:hsqldb:hsql://localhost
    hibernate.connection.url jdbc:hsqldb:tutorial
    hibernate.connection.url jdbc:hsqldb:.
      

  4.   

    怎么没有人帮我解决呀,快来帮忙呀。分不够再加呀。谁能给一个JBuilder编写的hibernate程序给他加100分呀快来帮忙啦。