[jbpm-commits] JBoss JBPM SVN: r4722 - jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon May 4 17:19:54 EDT 2009
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.java
Log:
hack because of not fully initialized hibernate configurations
Modified: jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.java
===================================================================
--- jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.java 2009-05-04 21:01:08 UTC (rev 4721)
+++ jbpm4/branches/ainze/modules/test-base/src/main/java/org/jbpm/test/Db.java 2009-05-04 21:19:53 UTC (rev 4722)
@@ -78,6 +78,13 @@
List<String> dropForeignKeysSql = new ArrayList<String>();
List<String> createForeignKeysSql = new ArrayList<String>();
Iterator<Table> iter = configuration.getTableMappings();
+
+ //if no session-factory is build, the configuration is not fully initialized.
+ //Hence, the ForeignKey's won't have a referenced table. This is calculated on
+ //second pass.
+ configuration.buildMappings();
+
+
while (iter.hasNext()) {
Table table = (Table) iter.next();
if (table.isPhysicalTable()) {
More information about the jbpm-commits
mailing list