|
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 |
- Re: findByPrimaryKey() calling store() Greg Matthews
- Re: findByPrimaryKey() calling store() James Ho
- Where are step-by-steps for servlet configur... Keith Kwiatek
- DTD for orion-ejb-jar? John D'Ausilio
- Please help with documentation servlet e... Keith Kwiatek
- Re: findByPrimaryKey() calling store() Greg Matthews
- RE: findByPrimaryKey() calling store() Juan Lorandi (Chile)
- RE: findByPrimaryKey() calling store() Colin Jacobs
