Testsuite: org.hibernate.auction.test.AllTests Tests run: 6, Failures: 0, Errors: 5, Time elapsed: 31.469 sec ------------- Standard Output --------------- 18:44:07,906 INFO Environment: Hibernate 2.1.6 18:44:07,906 INFO Environment: hibernate.properties not found 18:44:07,906 INFO Environment: using CGLIB reflection optimizer 18:44:07,921 INFO Configuration: configuring from resource: /hibernate.cfg.xml 18:44:07,921 INFO Configuration: Configuration resource: /hibernate.cfg.xml 18:44:08,000 INFO Configuration: Mapping resource: org/hibernate/auction/model/User.hbm.xml 18:44:08,093 INFO Binder: Mapping class: org.hibernate.auction.model.User -> USERS 18:44:08,343 INFO Configuration: Mapping resource: org/hibernate/auction/model/Item.hbm.xml 18:44:08,375 INFO Binder: Mapping class: org.hibernate.auction.model.Item -> ITEM 18:44:08,390 INFO Configuration: Mapping resource: org/hibernate/auction/model/Category.hbm.xml 18:44:08,421 INFO Binder: Mapping class: org.hibernate.auction.model.Category -> CATEGORY 18:44:08,421 INFO Configuration: Mapping resource: org/hibernate/auction/model/CategorizedItem.hbm.xml 18:44:08,437 INFO Binder: Mapping class: org.hibernate.auction.model.CategorizedItem -> CATEGORIZED_ITEM 18:44:08,453 INFO Configuration: Mapping resource: org/hibernate/auction/model/Bid.hbm.xml 18:44:08,468 INFO Binder: Mapping class: org.hibernate.auction.model.Bid -> BID 18:44:08,468 INFO Configuration: Mapping resource: org/hibernate/auction/model/BillingDetails.hbm.xml 18:44:08,484 INFO Binder: Mapping class: org.hibernate.auction.model.BillingDetails -> BILLING_DETAILS 18:44:08,515 INFO Binder: Mapping joined-subclass: org.hibernate.auction.model.CreditCard -> CREDIT_CARD 18:44:08,531 INFO Binder: Mapping joined-subclass: org.hibernate.auction.model.BankAccount -> BANK_ACCOUNT 18:44:08,531 INFO Configuration: Mapping resource: org/hibernate/auction/model/Comment.hbm.xml 18:44:08,546 INFO Binder: Mapping class: org.hibernate.auction.model.Comment -> COMMENTS 18:44:08,562 INFO Configuration: Mapping resource: org/hibernate/auction/persistence/audit/AuditLogRecord.hbm.xml 18:44:08,578 INFO Binder: Mapping class: org.hibernate.auction.persistence.audit.AuditLogRecord -> AUDIT_LOG 18:44:08,578 INFO Configuration: Configured SessionFactory: null 18:44:08,578 INFO Configuration: processing one-to-many association mappings 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.User.items -> ITEM 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.User.billingDetails -> BILLING_DETAILS 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.Item.categorizedItems -> CATEGORIZED_ITEM 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.Item.bids -> BID 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.Category.childCategories -> CATEGORY 18:44:08,578 INFO Binder: Mapping collection: org.hibernate.auction.model.Category.categorizedItems -> CATEGORIZED_ITEM 18:44:08,578 INFO Configuration: processing one-to-one association property references 18:44:08,578 INFO Configuration: processing foreign key constraints 18:44:08,609 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:08,609 INFO SettingsFactory: Use outer join fetching: true 18:44:08,609 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:08,609 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:08,625 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:08,625 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:08,640 INFO TransactionManagerLookupFactory: No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) 18:44:08,984 INFO SettingsFactory: Use scrollable result sets: true 18:44:08,984 INFO SettingsFactory: Use JDBC3 getGeneratedKeys(): false 18:44:08,984 INFO SettingsFactory: Optimize cache for minimal puts: false 18:44:08,984 INFO SettingsFactory: Query language substitutions: {} 18:44:08,984 INFO SettingsFactory: cache provider: net.sf.ehcache.hibernate.Provider 18:44:08,984 INFO Configuration: instantiating and configuring caches 18:44:09,015 INFO SessionFactoryImpl: building session factory 18:44:09,703 INFO SessionFactoryObjectFactory: Not binding factory to JNDI, no JNDI name configured 18:44:09,703 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:09,703 INFO Configuration: processing one-to-many association mappings 18:44:09,703 INFO Configuration: processing one-to-one association property references 18:44:09,703 INFO Configuration: processing foreign key constraints 18:44:09,703 INFO Configuration: processing one-to-many association mappings 18:44:09,703 INFO Configuration: processing one-to-one association property references 18:44:09,703 INFO Configuration: processing foreign key constraints 18:44:09,703 INFO SchemaExport: Running hbm2ddl schema export 18:44:09,703 INFO SchemaExport: exporting generated schema to database 18:44:09,703 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:09,703 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:09,703 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:09,703 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:11,406 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:11,406 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:12,437 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:12,437 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:12,562 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:12,562 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:12,578 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:12,578 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:12,578 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:12,578 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:12,687 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:12,687 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:12,687 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:12,687 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:12,937 INFO SchemaExport: schema export complete 18:44:12,937 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:12,937 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:13,015 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:13,015 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:13,015 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:13,015 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:13,015 ERROR JDBCExceptionReporter: could not insert: [org.hibernate.auction.model.Category] com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.ItemTest.testItemData(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523) 18:44:13,031 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:13,031 INFO Configuration: processing one-to-many association mappings 18:44:13,031 INFO Configuration: processing one-to-one association property references 18:44:13,031 INFO Configuration: processing foreign key constraints 18:44:13,031 INFO Configuration: processing one-to-many association mappings 18:44:13,031 INFO Configuration: processing one-to-one association property references 18:44:13,031 INFO Configuration: processing foreign key constraints 18:44:13,031 INFO SchemaExport: Running hbm2ddl schema export 18:44:13,031 INFO SchemaExport: exporting generated schema to database 18:44:13,031 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:13,031 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:13,031 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:13,031 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:14,828 INFO SchemaExport: schema export complete 18:44:14,828 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:14,828 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:14,828 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:14,828 INFO Configuration: processing one-to-many association mappings 18:44:14,828 INFO Configuration: processing one-to-one association property references 18:44:14,828 INFO Configuration: processing foreign key constraints 18:44:14,828 INFO Configuration: processing one-to-many association mappings 18:44:14,828 INFO Configuration: processing one-to-one association property references 18:44:14,828 INFO Configuration: processing foreign key constraints 18:44:14,828 INFO SchemaExport: Running hbm2ddl schema export 18:44:14,828 INFO SchemaExport: exporting generated schema to database 18:44:14,828 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:14,828 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:14,828 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:14,828 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:16,265 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:16,265 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:17,593 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:17,593 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:17,718 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:17,718 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:17,718 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:17,718 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:17,718 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:17,718 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:17,828 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:17,828 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:17,828 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:17,828 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:18,046 INFO SchemaExport: schema export complete 18:44:18,046 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:18,062 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:18,062 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:18,062 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:18,062 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:18,062 ERROR JDBCExceptionReporter: could not insert: [org.hibernate.auction.model.Category] com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.ItemTest.testPlaceBid(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523) 18:44:18,062 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:18,062 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:18,062 INFO Configuration: processing one-to-many association mappings 18:44:18,062 INFO Configuration: processing one-to-one association property references 18:44:18,062 INFO Configuration: processing foreign key constraints 18:44:18,062 INFO Configuration: processing one-to-many association mappings 18:44:18,062 INFO Configuration: processing one-to-one association property references 18:44:18,062 INFO Configuration: processing foreign key constraints 18:44:18,062 INFO SchemaExport: Running hbm2ddl schema export 18:44:18,062 INFO SchemaExport: exporting generated schema to database 18:44:18,062 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:18,062 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:18,062 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:18,062 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:19,765 INFO SchemaExport: schema export complete 18:44:19,765 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:19,765 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:19,765 INFO Configuration: processing one-to-many association mappings 18:44:19,765 INFO Configuration: processing one-to-one association property references 18:44:19,765 INFO Configuration: processing foreign key constraints 18:44:19,765 INFO Configuration: processing one-to-many association mappings 18:44:19,765 INFO Configuration: processing one-to-one association property references 18:44:19,765 INFO Configuration: processing foreign key constraints 18:44:19,765 INFO SchemaExport: Running hbm2ddl schema export 18:44:19,765 INFO SchemaExport: exporting generated schema to database 18:44:19,812 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:19,812 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:19,828 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:19,828 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:19,828 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:21,250 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:21,250 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:22,203 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:22,203 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:22,406 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:22,406 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:22,406 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:22,406 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:22,406 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:22,406 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:22,656 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:22,656 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:22,656 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:22,656 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:22,906 INFO SchemaExport: schema export complete 18:44:22,906 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:23,000 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:23,046 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:23,046 INFO Configuration: processing one-to-many association mappings 18:44:23,046 INFO Configuration: processing one-to-one association property references 18:44:23,046 INFO Configuration: processing foreign key constraints 18:44:23,046 INFO Configuration: processing one-to-many association mappings 18:44:23,046 INFO Configuration: processing one-to-one association property references 18:44:23,046 INFO Configuration: processing foreign key constraints 18:44:23,046 INFO SchemaExport: Running hbm2ddl schema export 18:44:23,046 INFO SchemaExport: exporting generated schema to database 18:44:23,046 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:23,046 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:23,046 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:23,046 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:24,500 INFO SchemaExport: schema export complete 18:44:24,500 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:24,500 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:24,500 INFO Configuration: processing one-to-many association mappings 18:44:24,500 INFO Configuration: processing one-to-one association property references 18:44:24,500 INFO Configuration: processing foreign key constraints 18:44:24,500 INFO Configuration: processing one-to-many association mappings 18:44:24,500 INFO Configuration: processing one-to-one association property references 18:44:24,500 INFO Configuration: processing foreign key constraints 18:44:24,515 INFO SchemaExport: Running hbm2ddl schema export 18:44:24,515 INFO SchemaExport: exporting generated schema to database 18:44:24,515 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:24,515 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:24,515 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:24,515 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:26,234 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:26,234 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:27,093 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:27,093 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:27,203 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:27,203 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:27,203 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:27,203 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:27,203 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:27,203 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:27,312 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:27,312 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:27,312 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:27,312 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:27,515 INFO SchemaExport: schema export complete 18:44:27,515 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:27,515 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:27,515 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:27,515 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:27,515 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:27,515 ERROR JDBCExceptionReporter: could not insert: [org.hibernate.auction.model.Category] com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testCompositeQuery(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523) 18:44:27,515 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:27,515 INFO Configuration: processing one-to-many association mappings 18:44:27,515 INFO Configuration: processing one-to-one association property references 18:44:27,515 INFO Configuration: processing foreign key constraints 18:44:27,515 INFO Configuration: processing one-to-many association mappings 18:44:27,515 INFO Configuration: processing one-to-one association property references 18:44:27,515 INFO Configuration: processing foreign key constraints 18:44:27,515 INFO SchemaExport: Running hbm2ddl schema export 18:44:27,515 INFO SchemaExport: exporting generated schema to database 18:44:27,515 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:27,515 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:27,515 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:27,515 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:27,515 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:29,296 INFO SchemaExport: schema export complete 18:44:29,296 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:29,296 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:29,296 INFO Configuration: processing one-to-many association mappings 18:44:29,296 INFO Configuration: processing one-to-one association property references 18:44:29,296 INFO Configuration: processing foreign key constraints 18:44:29,296 INFO Configuration: processing one-to-many association mappings 18:44:29,296 INFO Configuration: processing one-to-one association property references 18:44:29,296 INFO Configuration: processing foreign key constraints 18:44:29,296 INFO SchemaExport: Running hbm2ddl schema export 18:44:29,296 INFO SchemaExport: exporting generated schema to database 18:44:29,296 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:29,296 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:29,296 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:29,296 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:30,828 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:30,828 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:32,296 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:32,296 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:32,421 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:32,421 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:32,421 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:32,421 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:32,421 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:32,421 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:32,546 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:32,546 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:32,546 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:32,546 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:32,796 INFO SchemaExport: schema export complete 18:44:32,796 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:32,796 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:32,796 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:32,796 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:32,796 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:32,796 ERROR JDBCExceptionReporter: could not insert: [org.hibernate.auction.model.Category] com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testDeletionFromItem(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523) 18:44:32,796 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:32,796 INFO Configuration: processing one-to-many association mappings 18:44:32,796 INFO Configuration: processing one-to-one association property references 18:44:32,796 INFO Configuration: processing foreign key constraints 18:44:32,796 INFO Configuration: processing one-to-many association mappings 18:44:32,796 INFO Configuration: processing one-to-one association property references 18:44:32,796 INFO Configuration: processing foreign key constraints 18:44:32,796 INFO SchemaExport: Running hbm2ddl schema export 18:44:32,796 INFO SchemaExport: exporting generated schema to database 18:44:32,796 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:32,796 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:32,796 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:32,796 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:34,390 INFO SchemaExport: schema export complete 18:44:34,390 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:34,390 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:34,390 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:34,390 INFO Configuration: processing one-to-many association mappings 18:44:34,390 INFO Configuration: processing one-to-one association property references 18:44:34,390 INFO Configuration: processing foreign key constraints 18:44:34,390 INFO Configuration: processing one-to-many association mappings 18:44:34,390 INFO Configuration: processing one-to-one association property references 18:44:34,390 INFO Configuration: processing foreign key constraints 18:44:34,390 INFO SchemaExport: Running hbm2ddl schema export 18:44:34,390 INFO SchemaExport: exporting generated schema to database 18:44:34,390 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:34,390 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:34,390 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:34,390 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:35,968 ERROR SchemaExport: Unsuccessful: create table CATEGORY (CATEGORY_ID bigint not null generated always as identity, VERSION integer not null, NAME varchar(255) not null, CREATED timestamp not null, PARENT_CATEGORY_ID bigint, primary key (CATEGORY_ID), unique (NAME, PARENT_CATEGORY_ID)) 18:44:35,968 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42831, SQLERRMC: PARENT_CATEGORY_ID42831 18:44:37,078 ERROR SchemaExport: Unsuccessful: alter table BANK_ACCOUNT add constraint FK1_BANK_ACCOUNT_ID foreign key (BANK_ACCOUNT_ID) references BILLING_DETAILS 18:44:37,078 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_BANK_ACCOUNT_ID1842622 18:44:37,328 ERROR SchemaExport: Unsuccessful: alter table CATEGORIZED_ITEM add constraint FK1C7A5407DBFCB7FC foreign key (CATEGORY_ID) references CATEGORY 18:44:37,328 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: X0Y46, SQLERRMC: FK1C7A5407DBFCB7FCCATEGORYX0Y46.S 18:44:37,328 ERROR SchemaExport: Unsuccessful: alter table CATEGORY add constraint FK1_PARENT_CATEGORY_ID foreign key (PARENT_CATEGORY_ID) references CATEGORY 18:44:37,328 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_PARENT_CATEGORY_ID1842622 18:44:37,328 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK1_APPROVED_BY_USER_ID foreign key (APPROVED_BY_USER_ID) references USERS 18:44:37,328 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_APPROVED_BY_USER_ID1842622 18:44:37,546 ERROR SchemaExport: Unsuccessful: alter table ITEM add constraint FK3_SUCCESSFUL_BID_ID foreign key (SUCCESSFUL_BID_ID) references BID 18:44:37,546 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK3_SUCCESSFUL_BID_ID1842622 18:44:37,546 ERROR SchemaExport: Unsuccessful: alter table USERS add constraint FK1_DEFAULT_BILLING_DETAILS_ID foreign key (DEFAULT_BILLING_DETAILS_ID) references BILLING_DETAILS 18:44:37,546 ERROR SchemaExport: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42622, SQLERRMC: FK1_DEFAULT_BILLING_DETAILS_ID1842622 18:44:37,828 INFO SchemaExport: schema export complete 18:44:37,828 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB Running test... 18:44:37,843 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:37,843 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:37,843 WARN JDBCExceptionReporter: SQL Error: -1, SQLState: 42X05 18:44:37,843 ERROR JDBCExceptionReporter: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 18:44:37,843 ERROR JDBCExceptionReporter: could not insert: [org.hibernate.auction.model.Category] com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testDeletionFromCategory(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:523) 18:44:37,843 INFO Dialect: Using dialect: net.sf.hibernate.dialect.DerbyDialect 18:44:37,843 INFO Configuration: processing one-to-many association mappings 18:44:37,843 INFO Configuration: processing one-to-one association property references 18:44:37,843 INFO Configuration: processing foreign key constraints 18:44:37,843 INFO Configuration: processing one-to-many association mappings 18:44:37,843 INFO Configuration: processing one-to-one association property references 18:44:37,843 INFO Configuration: processing foreign key constraints 18:44:37,843 INFO SchemaExport: Running hbm2ddl schema export 18:44:37,843 INFO SchemaExport: exporting generated schema to database 18:44:37,843 INFO DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!) 18:44:37,843 INFO DriverManagerConnectionProvider: Hibernate connection pool size: 1 18:44:37,843 INFO DriverManagerConnectionProvider: using driver: com.ibm.db2.jcc.DB2Driver at URL: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:37,843 INFO DriverManagerConnectionProvider: connection properties: {user=me, password=secret} 18:44:37,843 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB 18:44:39,218 INFO SchemaExport: schema export complete 18:44:39,218 INFO DriverManagerConnectionProvider: cleaning up connection pool: jdbc:cloudscape:net://localhost:1527/NSSimpleDB ------------- ---------------- --------------- Testcase: testItemData took 7.047 sec Caused an ERROR net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] org.hibernate.auction.exceptions.InfrastructureException: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.ItemTest.testItemData(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) Caused by: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:558) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) ... 20 more Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) ... 27 more Testcase: testPlaceBid took 4.937 sec Caused an ERROR net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] org.hibernate.auction.exceptions.InfrastructureException: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.ItemTest.testPlaceBid(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) Caused by: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:558) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) ... 20 more Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) ... 27 more Testcase: testAuditLog took 4.735 sec Testcase: testCompositeQuery took 4.796 sec Caused an ERROR net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] org.hibernate.auction.exceptions.InfrastructureException: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testCompositeQuery(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) Caused by: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:558) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) ... 20 more Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) ... 27 more Testcase: testDeletionFromItem took 5.094 sec Caused an ERROR net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] org.hibernate.auction.exceptions.InfrastructureException: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testDeletionFromItem(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) Caused by: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:558) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) ... 20 more Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) ... 27 more Testcase: testDeletionFromCategory took 4.828 sec Caused an ERROR net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] org.hibernate.auction.exceptions.InfrastructureException: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at org.hibernate.auction.dao.CategoryDAO.makePersistent(Unknown Source) at org.hibernate.auction.test.TestCaseWithData.initData(Unknown Source) at org.hibernate.auction.test.CategoryItemTest.testDeletionFromCategory(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.hibernate.auction.test.TestCase.runTest(Unknown Source) Caused by: net.sf.hibernate.JDBCException: could not insert: [org.hibernate.auction.model.Category] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:558) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1388) ... 20 more Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1, SQLSTATE: 42X05, SQLERRMC: CATEGORY42X05 at com.ibm.db2.jcc.c.yc.e(yc.java:1512) at com.ibm.db2.jcc.a.db.p(db.java:633) at com.ibm.db2.jcc.a.db.h(db.java:151) at com.ibm.db2.jcc.a.db.a(db.java:42) at com.ibm.db2.jcc.a.r.a(r.java:31) at com.ibm.db2.jcc.a.sb.g(sb.java:149) at com.ibm.db2.jcc.c.yc.l(yc.java:1092) at com.ibm.db2.jcc.c.zc.ab(zc.java:1795) at com.ibm.db2.jcc.c.zc.d(zc.java:2237) at com.ibm.db2.jcc.c.zc.S(zc.java:557) at com.ibm.db2.jcc.c.zc.executeUpdate(zc.java:540) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:528) ... 27 more