Hi, 

I have a custom map builder, extending the turbine map builder.

I have a renamed visitorrole table - which was not getting picked up (hence my email 
query yesterday)

The problem is due to the visitorrolepeer hard coding the table/column names - so the 
fix is to use the map builder, that is;

Index: turbine/om/security/peer/VisitorRolePeer.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/om/security/peer/VisitorRolePeer.java,v
retrieving revision 1.2
diff -u -r1.2 VisitorRolePeer.java
--- turbine/om/security/peer/VisitorRolePeer.java       2000/09/21 18:53:53     1.2
+++ turbine/om/security/peer/VisitorRolePeer.java       2000/10/25 21:00:56
@@ -84,12 +84,12 @@
     private static final TurbineMapBuilder mapBuilder = (TurbineMapBuilder) 
getMapBuilder();
     /** The table name for this peer. */
-    private static final String TABLE_NAME = "VisitorRole";
+    private static final String TABLE_NAME = mapBuilder.getTableVisitorRole();
     /** The column name for the visitor id field. */
-    public static final String VISITOR_ID = "VisitorRole.VISITORID";
+    public static final String VISITOR_ID = mapBuilder.getVisitorRole_VisitorId();
     /** The column name for the role id field. */
-    public static final String ROLE_ID = "VisitorRole.ROLEID";
+    public static final String ROLE_ID = mapBuilder.getVisitorRole_RoleId();


Please could someone commit this fix to cvs.

[Although it may well be redundant when the new ACL stuff arrives - it will help until 
then...]

Thanks,
Chris
---
"surely it is madness to accept life as it is and not as it could be"
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to