一月 07, 2014 8:13:33 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
一月 07, 2014 8:13:33 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.5.Final}
一月 07, 2014 8:13:33 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
一月 07, 2014 8:13:33 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
一月 07, 2014 8:13:33 下午 org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
一月 07, 2014 8:13:33 下午 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
一月 07, 2014 8:13:33 下午 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
一月 07, 2014 8:13:34 下午 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: HHH000227: Running hbm2ddl schema export
Hibernate: alter table "User" drop constraint FK_25yqck53dyy0k1q261ncjxmw3
Hibernate: drop table "Address" if exists
Hibernate: drop table "User" if exists
Hibernate: create table "Address" ("id" integer generated by default as identity, primary key ("id"))
Hibernate: create table "User" ("id" integer generated by default as identity, "username" varchar(255), address_id integer, primary key ("id"))
Hibernate: alter table "User" add constraint `UK_lybnpe7nngdl2enw3pt662j8h` unique ("username", address_id)
一月 07, 2014 8:13:34 下午 org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: alter table "User" add constraint `UK_lybnpe7nngdl2enw3pt662j8h` unique ("username", address_id)
一月 07, 2014 8:13:34 下午 org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Constraint "UK_LYBNPE7NNGDL2ENW3PT662J8H" already exists; SQL statement:
alter table "User" add constraint `UK_lybnpe7nngdl2enw3pt662j8h` unique ("username", address_id) [90045-174]
Hibernate: alter table "User" add constraint FK_25yqck53dyy0k1q261ncjxmw3 foreign key (address_id) references "Address"
一月 07, 2014 8:13:34 下午 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: HHH000230: Schema export complete
一月 07, 2014 8:13:34 下午 org.springframework.orm.hibernate4.HibernateTransactionManager afterPropertiesSet
信息: Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@4cf15f6c] of Hibernate SessionFactory for HibernateTransactionManager
一月 07, 2014 8:13:34 下午 org.springframework.test.context.transaction.TransactionalTestExecutionListener startNewTransaction
信息: Began transaction (1): transaction manager [org.springframework.orm.hibernate4.HibernateTransactionManager@7d5296f3]; rollback [true]
Hibernate: select user0_."id" as id1_1_, user0_.address_id as address_3_1_, user0_."username" as username2_1_ from "User" user0_
一月 07, 2014 8:13:34 下午 org.springframework.test.context.transaction.TransactionalTestExecutionListener endTransaction
信息: Rolled back transaction after test execution for test context [TestContext@5b31798e testClass = UserServiceTest, testInstance = cn.youcredit.test.db.UserServiceTest@d238868, testMethod = testGetUsers@UserServiceTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@17d06a95 testClass = UserServiceTest, locations = '{classpath:/spring.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]