dear all,

i have a jsp that calls findByPrimaryKey on an entity bean.

the data that the bean represents exists in the database.

it seems like ejbStore is being called as a result of calling
findByPrimaryKey.

also, once i have a reference to the bean, calling an accessor
method on it also seems to cause ejbStore to be called.

is there something i can set to prevent the bean being
updated when there is no (apparent?) need, or am i
missing something?
 
thanks,
greg.


// as a result of findByPrimaryKey
SELECT id FROM sales_order WHERE id = 5
UPDATE sales_order SET notes = 'notes 5' WHERE id = 5
IF @@TRANCOUNT>0 COMMIT TRAN BEGIN TRAN

// as a result of calling order.getNotes( ), an EJB method
// that does not access the database
UPDATE sales_order SET notes = 'notes 5' WHERE id = 5
IF @@TRANCOUNT>0 COMMIT TRAN BEGIN TRAN

Reply via email to