entry.setNew(true);
before the second save() should give you two, otherwise, you are doing an update.
Jinsong Hu wrote:
in the sample book application there is a method in SQL.java
public void doInsert(RunData data, Context context)
throws Exception
{
Rdf entry = new Rdf();
data.getParameters().setProperties(entry);
entry.save();
}
if I change the code to:
public void doInsert(RunData data, Context context)
throws Exception
{
Rdf entry = new Rdf();
data.getParameters().setProperties(entry);
entry.save();
entry.setTitle("123");
entry.save();
}
when I do insert , I should have inserted 2 rows into the table. In the
standalone mode, I found that is the
case, but in the web mode in turbine, only one row is inserted. Does any
body have any clue ?
Jinsong
I should get 2 rows of
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
