黑马程序员:hibernate测试异常的解决:Hibernate Validator bean-validator-3.0-JBoss-4.0.2...

[align=center]------- [url=http://edu.csdn.net/heima]android培训 [/url]、[url=http://edu.csdn.net/heima]java培训[/url]、期待与您交流!------- [/align]

hibernate.cfg.xml配置文件如下:





org.hibernate.dialect.MySQLDialect

jdbc:mysql://localhost:3306/db_database14

root

root

com.mysql.jdbc.Driver

true



create







测试的时候包以下异常:
[quote]2012-5-23 23:01:53 org.hibernate.annotations.common.Version
信息: Hibernate Commons Annotations 3.2.0.Final
2012-5-23 23:01:53 org.hibernate.cfg.Environment
信息: Hibernate 3.6.10.Final
2012-5-23 23:01:53 org.hibernate.cfg.Environment
信息: hibernate.properties not found
2012-5-23 23:01:53 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : javassist
2012-5-23 23:01:53 org.hibernate.cfg.Environment
信息: using JDK 1.4 java.sql.Timestamp handling
2012-5-23 23:01:53 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/hibernate/tutorial/hbm/Event.hbm.xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2012-5-23 23:01:53 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: org.hibernate.tutorial.hbm.Event -> EVENTS
2012-5-23 23:01:53 org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
信息: Hibernate Validator not found: ignoring
2012-5-23 23:01:53 org.hibernate.validator.util.Version
信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2[/quote]

解决方案,在配置文件中加上下面一句既可:
none  


[align=center]------- [url=http://edu.csdn.net/heima]android培训 [/url]、[url=http://edu.csdn.net/heima]java培训[/url]、期待与您交流!------- [/align]

[align=center]详细请查看:[url=http://edu.csdn.net/heima]http://edu.csdn.net/heima [/url]------- [/align]

你可能感兴趣的:(hibernate异常解决)