From do-not-reply at jboss.org Mon May 4 17:23:31 2009 Content-Type: multipart/mixed; boundary="===============6248195327164101959==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: jbpm-commits at lists.jboss.org Subject: [jbpm-commits] JBoss JBPM SVN: r4722 - jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test. Date: Mon, 04 May 2009 17:19:54 -0400 Message-ID: --===============6248195327164101959== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ainze Date: 2009-05-04 17:19:53 -0400 (Mon, 04 May 2009) New Revision: 4722 Modified: jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.ja= va Log: hack because of not fully initialized hibernate configurations Modified: jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/tes= t/Db.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.j= ava 2009-05-04 21:01:08 UTC (rev 4721) +++ jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.j= ava 2009-05-04 21:19:53 UTC (rev 4722) @@ -78,6 +78,13 @@ List dropForeignKeysSql =3D new ArrayList(); List createForeignKeysSql =3D new ArrayList(); Iterator iter =3D configuration.getTableMappings(); + = + //if no session-factory is build, the configuration is not fully ini= tialized. + //Hence, the ForeignKey's won't have a referenced table. This is cal= culated on = + //second pass. + configuration.buildMappings(); + = + = while (iter.hasNext()) { Table table =3D (Table) iter.next(); if (table.isPhysicalTable()) { --===============6248195327164101959==--