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

为什么没有插入数据

2017-3-6 17:25:57 org.hibernate.annotations.common.Version <clinit>

INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}

2017-3-6 17:25:57 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.2.4.Final}

2017-3-6 17:25:57 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

2017-3-6 17:25:57 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

2017-3-6 17:25:57 org.hibernate.cfg.Configuration configure

INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

2017-3-6 17:25:57 org.hibernate.cfg.Configuration getConfigurationInputStream

INFO: HHH000040: Configuration resource: /hibernate.cfg.xml

2017-3-6 17:25:57 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity

WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

2017-3-6 17:25:57 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: com/zw/bean/Student.hbm.xml

2017-3-6 17:25:57 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity

WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

2017-3-6 17:25:57 org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

2017-3-6 17:25:57 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)

2017-3-6 17:25:57 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

2017-3-6 17:25:57 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

2017-3-6 17:25:57 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000401: using driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] at URL [jdbc:sqlserver://localhost:1433;DatabaseName=student]

2017-3-6 17:25:57 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000046: Connection properties: {user=sa, password=****}

2017-3-6 17:26:03 org.hibernate.dialect.Dialect <init>

INFO: HHH000400: Using dialect: org.hibernate.dialect.SQLServerDialect

2017-3-6 17:26:03 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService

INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)

2017-3-6 17:26:03 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>

INFO: HHH000397: Using ASTQueryTranslatorFactory

2017-3-6 17:26:04 org.hibernate.tool.hbm2ddl.SchemaExport execute

INFO: HHH000227: Running hbm2ddl schema export

Hibernate: 

    drop table student.dbo.student

Hibernate: 

    create table student.dbo.student (

        Sid int not null,

        Name varchar(10) not null,

        Sex varchar(2) not null,

        Birthday datetime not null,

        Addr varchar(20) not null,

        primary key (Sid, Name, Sex, Birthday, Addr)

    )

2017-3-6 17:26:04 org.hibernate.tool.hbm2ddl.SchemaExport execute

INFO: HHH000230: Schema export complete


正在回答

3 回答

#?onlineofflinetag-don'tremovetype:&quot;post&quot;notthereturntype[datatype]

0 回复 有任何疑惑可以回复我~

测试类的代码

0 回复 有任何疑惑可以回复我~

兄弟,贴代码啊,这怎么看

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么没有插入数据

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信