为了账号安全,请及时绑定邮箱和手机立即绑定

错误原因?

错误原因?

慕九州0120569 2015-12-14 13:15:03
2015-12-14 13:08:47 org.hibernate.annotations.common.Version <clinit>INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}2015-12-14 13:08:47 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {4.2.4.Final}2015-12-14 13:08:47 org.hibernate.cfg.Environment <clinit>INFO: HHH000206: hibernate.properties not found2015-12-14 13:08:47 org.hibernate.cfg.Environment buildBytecodeProviderINFO: HHH000021: Bytecode provider name : javassist2015-12-14 13:08:47 org.hibernate.cfg.Configuration configureINFO: HHH000043: Configuring from resource: /hibernate.cfg.xml2015-12-14 13:08:47 org.hibernate.cfg.Configuration getConfigurationInputStreamINFO: HHH000040: Configuration resource: /hibernate.cfg.xml2015-12-14 13:08:47 org.hibernate.cfg.Configuration addResourceINFO: HHH000221: Reading mappings from resource: entity/Appliance.hbm.xml2015-12-14 13:08:47 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntityWARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!2015-12-14 13:08:47 org.hibernate.cfg.Configuration addResourceINFO: HHH000221: Reading mappings from resource: entity/Users.hbm.xml2015-12-14 13:08:47 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntityWARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!2015-12-14 13:08:47 org.hibernate.cfg.Configuration doConfigureINFO: HHH000041: Configured SessionFactory: null2015-12-14 13:08:47 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)2015-12-14 13:08:47 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000115: Hibernate connection pool size: 202015-12-14 13:08:47 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000006: Autocommit mode: false2015-12-14 13:08:47 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000401: using driver [oracle.jdbc.driver.OracleDriver] at URL [jdbc:oracle:thin:@localhost:1521:orcl]2015-12-14 13:08:47 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000046: Connection properties: {user=system, password=****}2015-12-14 13:08:47 org.hibernate.engine.jdbc.internal.JdbcServicesImpl configureWARN: HHH000341: Could not obtain connection metadata : 不支持的特性2015-12-14 13:08:47 org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreationINFO: HHH000422: Disabling contextual LOB creation as connection was null代码:public class TestA { @Test public void testSchemaExport(){ Configuration config=new Configuration().configure(); ServiceRegistry serviceRegistry=new ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry(); SessionFactory sessionFactory=config.buildSessionFactory(serviceRegistry); Session session=sessionFactory.getCurrentSession(); SchemaExport export=new SchemaExport(config); export.create(true, true); }}
查看完整描述

2 回答

?
小城阿哥

TA贡献89条经验 获得超59个赞

不好意思    应该是数据库jar包版本的问题吧   问题是说取不到元数据么。

查看完整回答
反对 回复 2015-12-14
?
小城阿哥

TA贡献89条经验 获得超59个赞

hibernate 版本问题  建议使用 老师所用的版本  

查看完整回答
反对 回复 2015-12-14
  • 2 回答
  • 0 关注
  • 2611 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信