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); }}
添加回答
举报
0/150
提交
取消