亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我每次執行后數據庫都沒有了數據

什么我每次執行后數據庫都沒有了數據

五 14, 2016 9:21:16 下午 org.hibernate.annotations.common.Version <clinit>

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

五月 14, 2016 9:21:16 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.1.4.Final}

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Configuration configure

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

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

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

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: entity/Students.hbm.xml

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: entity/Users.hbm.xml

五月 14, 2016 9:21:16 下午 org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

五月 14, 2016 9:21:16 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

五月 14, 2016 9:21:16 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

五月 14, 2016 9:21:16 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

五月 14, 2016 9:21:16 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF-8]

五月 14, 2016 9:21:16 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

Sat May 14 21:21:16 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

五月 14, 2016 9:21:17 下午 org.hibernate.dialect.Dialect <init>

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

五月 14, 2016 9:21:17 下午 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService

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

五月 14, 2016 9:21:17 下午 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>

INFO: HHH000397: Using ASTQueryTranslatorFactory

五月 14, 2016 9:21:17 下午 org.hibernate.validator.util.Version <clinit>

信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2

五月 14, 2016 9:21:17 下午 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

五月 14, 2016 9:21:17 下午 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000228: Running hbm2ddl schema update

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000102: Fetching database metadata

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000396: Updating schema

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000261: Table found: test.students

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000037: Columns: [birthday, sid, address, gender, sname]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000108: Foreign keys: []

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000126: Indexes: [primary]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000261: Table found: test.users

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000037: Columns: [uid, username, password]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000108: Foreign keys: []

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000126: Indexes: [primary]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000232: Schema update complete

Hibernate:?

? ? insert?

? ? into

? ? ? ? STUDENTS

? ? ? ? (sname, gender, birthday, address, sid)?

? ? values

? ? ? ? (?, ?, ?, ?, ?)

Hibernate:?

? ? insert?

? ? into

? ? ? ? STUDENTS

? ? ? ? (sname, gender, birthday, address, sid)?

? ? values

? ? ? ? (?, ?, ?, ?, ?)

Hibernate:?

? ? insert?

? ? into

? ? ? ? STUDENTS

? ? ? ? (sname, gender, birthday, address, sid)?

? ? values

? ? ? ? (?, ?, ?, ?, ?)

五月 14, 2016 9:21:17 下午 org.hibernate.cfg.Configuration configure

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

五月 14, 2016 9:21:17 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

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

五月 14, 2016 9:21:17 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: entity/Students.hbm.xml

五月 14, 2016 9:21:17 下午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: entity/Users.hbm.xml

五月 14, 2016 9:21:17 下午 org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF-8]

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

Sat May 14 21:21:17 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

五月 14, 2016 9:21:17 下午 org.hibernate.dialect.Dialect <init>

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

五月 14, 2016 9:21:17 下午 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService

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

五月 14, 2016 9:21:17 下午 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>

INFO: HHH000397: Using ASTQueryTranslatorFactory

五月 14, 2016 9:21:17 下午 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

五月 14, 2016 9:21:17 下午 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA

信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000228: Running hbm2ddl schema update

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000102: Fetching database metadata

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000396: Updating schema

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000261: Table found: test.students

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000037: Columns: [birthday, sid, address, gender, sname]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000108: Foreign keys: []

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000126: Indexes: [primary]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000261: Table found: test.users

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000037: Columns: [uid, username, password]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000108: Foreign keys: []

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.TableMetadata <init>

INFO: HHH000126: Indexes: [primary]

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

INFO: HHH000232: Schema update complete

五月 14, 2016 9:21:17 下午 org.hibernate.dialect.Dialect <init>

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

五月 14, 2016 9:21:17 下午 org.hibernate.tool.hbm2ddl.SchemaExport execute

INFO: HHH000227: Running hbm2ddl schema export

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF-8]

五月 14, 2016 9:21:17 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

Sat May 14 21:21:17 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.


? ? drop table if exists STUDENTS


? ? drop table if exists USERS


? ? create table STUDENTS (

? ? ? ? sid varchar(8) not null,

? ? ? ? sname varchar(255),

? ? ? ? gender varchar(255),

? ? ? ? birthday date,

? ? ? ? address varchar(255),

? ? ? ? primary key (sid)

? ? )


? ? create table USERS (

? ? ? ? uid integer not null auto_increment,

? ? ? ? username varchar(255),

? ? ? ? password varchar(255),

? ? ? ? primary key (uid)

? ? )

五月 14, 2016 9:21:18 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl stop

INFO: HHH000030: Cleaning up connection pool [jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF-8]

五月 14, 2016 9:21:18 下午 org.hibernate.tool.hbm2ddl.SchemaExport execute

INFO: HHH000230: Schema export complete


正在回答

2 回答

表的生成策略是不是create,是的話每執行一次,會先將之前的表刪除再重新創建新表,建議改成update

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

刷新數據庫表試試


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

舉報

0/150
提交
取消

為什么我每次執行后數據庫都沒有了數據

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號