It appears that two of the table names are wrong in the default
DatabaseMapBuilder.java file.
The foreign keys into the role table refer to the table name as "Role".
I believe they should be "UserRole".
This prevents proper where clauses from being generated in BasePeer.
Here is the diff:
-------------- Begin patch01.txt ------------------
Index: DatabaseMapBuilder.java
===================================================================
RCS file:
/products/cvs/turbine/turbine/src/java/org/apache/turbine/util/db/DatabaseMapBuilder.java,v
retrieving revision 1.5
diff -r1.5 DatabaseMapBuilder.java
212c212
< tMap.addForeignPrimaryKey("ROLEID", integer, "Role", "ROLEID");
---
> tMap.addForeignPrimaryKey("ROLEID", integer, "UserRole",
"ROLEID");
217c217
< tMap.addForeignPrimaryKey("ROLEID", integer, "Role", "ROLEID");
---
> tMap.addForeignPrimaryKey("ROLEID", integer, "UserRole",
"ROLEID");
--------------- End patch01.txt -------------------
Parker J. May
Outcome Technology Associates
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]