Hi!
Shahar Solomianik wrote:
> I have a last_modified column for each table (entity...) in my db. My entity
> beans are mostly CMP's.
> Before EJB, I would have create a trigger on update to update that column.
> How should I do it with my CMP beans ? exclusivley code an ejbStore method
> (eventhough its a CMP)?
> Maybe hang on to the trigger (though I feel it is confusing that logical
> operations on the data take place in two different scopes)?
> Any ideas ?
Make it a CMP field and update it in ejbStore.
E.g.
public Date lastModified;
public void ejbStore()
{
lastModified = new Date();
}
/Rickard
--
Rickard Öberg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]