I wanted to ask a question about the best way to
prevent users overwriting each others changes when
updating the database.
If you use the simplest way
IntakeTool intake = (IntakeTool)
context.get(ConstSpr.INTAKE_STRING);
Group group =
I am wondering if there is a way to do database
independent error trapping.
For example on a table/object that has a unique key I
just invoke the .save() method and and trap any
exception. I look at the exception to see if it was a
duplicate value in the unique column that caused the
error and
I had the same problem, I thought it was a bug too.
The work around was build a criteria object with the
data you want to insert and then call the insert
method on the peer that takes a criteria.
The problem seems to be that Torque assumes that the
all ids will be generated so when it builds its
Hi,
I am using Turbine 2.3.2. Which I believe uses torque 3.1.1. I am attempting
to add a row to the TurbineUserGroupRole table using the following code.
int userId = data.getParameters().getInt(userId);
ugr.setUserId( userId );
int groupId =