输出信息: 2007-9-7 17:06:00 org.hibernate.cfg.environment info: hibernate 3.2.5 2007-9-7 17:06:03 org.hibernate.cfg.environment info: hibernate.properties not found 2007-9-7 17:06:03 org.hibernate.cfg.environment info: bytecode provider name : cglib 2007-9-7 17:06:04 org.hibernate.cfg.environment info: using jdk 1.4 java.sql.timestamp handling 2007-9-7 17:06:05 org.hibernate.cfg.configuration info: reading mappings from file: cccifngtvinfo.hbm.xml 2007-9-7 17:06:09 org.hibernate.cfg.hbmbinder info: mapping class: core.cc.cif.entity.cccifngtvinfo -> cc_cif_ngtv_info 2007-9-7 17:06:11 org.hibernate.mapping.rootclass warning: composite-id class does not override equals(): core.cc.cif.entity.cccifngtvinfo 2007-9-7 17:06:11 org.hibernate.mapping.rootclass warning: composite-id class does not override hashcode(): core.cc.cif.entity.cccifngtvinfo 2007-9-7 17:06:11 org.hibernate.connection.usersuppliedconnectionprovider warning: no connection properties specified - the user must supply jdbc connections exception in thread "main " 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:426) at org.hibernate.cfg.settingsfactory.buildsettings(settingsfactory.java:128) at org.hibernate.cfg.configuration.buildsettings(configuration.java:2009) at org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1292) at core.cc.cif.batch.hibernatetestjob.savengtvdata(hibernatetestjob.java:129) at core.cc.cif.batch.hibernatetestjob.EXECute(hibernatetestjob.java:69) at core.cc.cif.batch.hibernatetestjob.main(hibernatetestjob.java:312)
发表于:2007-09-07 18:16:501楼 得分:0
please help
发表于:2007-09-07 19:04:102楼 得分:20
hibernate dialect must be explicitly set 就是说你hibernate方言没设正确 检查你的hibernate.cfg.xml <?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 ">