Hi David,
David Zhao wrote:
So it seems to me that I have to use TURBINE_USER_GROUP_ROLE and
TURBINE_ROLE_PERMISSION to store related information, please correct
if I am wrong. And if I am, could you let me know how to configure in
the TR file?
You are right, you cannot replace TurbineUserGroupRolePeer and
TurbineRolePermissionPeer in 2.3.2. However, Turbine makes no
assumptions about the relations of the tables, so if your other tables
have integer primary keys, it should work nevertheless.
I use the following in TR.properties:
---8<---
# These are the classes that are used to access the user tables in the
# database
services.SecurityService.torque.user.class =
com.mycompany.myproject.om.TurbineUser
services.SecurityService.torque.userPeer.class =
com.mycompany.myproject.om.TurbineUserPeer
services.SecurityService.torque.group.class =
com.mycompany.myproject.om.TurbineGroup
services.SecurityService.torque.groupPeer.class =
com.mycompany.myproject.om.TurbineGroupPeer
services.SecurityService.torque.role.class =
com.mycompany.myproject.om.TurbineRole
services.SecurityService.torque.rolePeer.class =
com.mycompany.myproject.om.TurbineRolePeer
services.SecurityService.torque.permission.class =
com.mycompany.myproject.om.TurbinePermission
services.SecurityService.torque.permissionPeer.class =
com.mycompany.myproject.om.TurbinePermissionPeer
---8<---
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]