Hi everybody,
I'm using a ThrowOnPartialOrCreateSchemaStrategy and I ran into the problem
that my tables are not generated if I specify a schema for the DbEntities.
SchemaAnalyzer.compareTables only checks if the schema exists and doesn't
verify if it actually contains any tables. I'm using the latest trunk (rev
1222604) and Postgres 8.3. The following patch fixes the problem for me. Should
I raise an issue in JIRA for this?
Cheers,
Joerg
Index: SchemaAnalyzer.java
===================================================================
--- SchemaAnalyzer.java (revision 1222604)
+++ SchemaAnalyzer.java (working copy)
@@ -119,7 +119,12 @@
if (schema != null) {
if (schemaNameMap.get(schema) != null) {
-
+ Collection<String> names = schemaNameMap.get(schema);
+ if (names.contains(name)) {
+ mapTableInDB.put(name, schema);
+ } else {
+ tableNoInDB.add(name);
+ }
}
else {
isIncluded = false;