You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mark Wassermann <mw...@mw-net.com> on 2007/03/26 10:49:16 UTC

Turbine Torque Security Problem

Hi

I trying to write data to the TurbineUserGroupRole (Turbine 2.3.2) Table
and I am gettung the following error.


org.apache.torque.TorqueException: Database insert attempted without
anything specified to insert at
org.apache.torque.util.BasePeer.doInsert(BasePeer.java:478) at
mwapp.om.BaseTurbineUserGroupRolePeer.doInsert(BaseTurbineUserGroupRolePeer.java:213)
...

My Code:
TurbineUserGroupRole entry = new TurbineUserGroupRole();

method a				
entry.setPrimaryKey(data.getParameters().getInt("FD_User_ID"),
data.getParameters().getInt("TargetId"),
data.getParameters().getInt("FD_Role_ID"));

method b
entry.setUserId(data.getParameters().getInt("FD_User_ID"));
entry.setGroupId(data.getParameters().getInt("TargetId"));
entry.setRoleId(data.getParameters().getInt("FD_Role_ID"));

entry.save();

both methods produce the same result

can someone give me a hint
thx
Mark

-- 
 Mark Wassermann            @: mwassermann@mw-net.com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org