Hi,
When I generate an Object Model with Torque with option , addSaveMethod=true ,
Then It generated like
/**
* Stores the object in the database. If the object is new,
* it inserts it; otherwise an update is performed.
*/
public void save() throws Exception
{
if (isModified())
{
if (isNew())
{
xxxPeer.doInsert(this);
}
else
{
xxxPeer.doUpdate(this);
setNew(false);
}
}
}
But It should be
/**
* Stores the object in the database. If the object is new,
* it inserts it; otherwise an update is performed.
*/
public void save() throws Exception
{
if (isModified())
{
if (isNew())
{
xxxPeer.doInsert(this);
+ setNew(false);
}
else
{
xxxPeer.doUpdate(this);
- setNew(false);
}
}
}
Thanks,
youngho
�˛���m�n���z���p��"�h��(�:.�˛���m�n���z�ߖ+-�x��d�j�!��i��0�f���܆+�r����ۊw��X��
+�)�v�,r��>��鬎��"�h��(