I am successfully using OJB rc5 and I really appreciate this tool. Now I want to extend my data-model so that I have 2 additional fields:
- creationDate: the date the object/row was created - lastUpdate: the date the object/row was last updated
Currently we are using MySQL as database, but we don't want to use any database-specific functions so that I have to implement it myself.
I identified several cases and one I can't imagine how to solve the maintainence of my two dates.
1.) "Normal Object": say I have class A. via the interface PersistenceBrokerAware I can easily set "creationDate" and "lastUpdate" to the correct values.
2.) Decomposed NM-Relation between class A and B via class AC: well this is just another case of 1.)
3.) Non-Decomposed NM-Relation between class A and B: This is the case which puzzles me: is it possible to implement a callback mechanism or something like that, when inserting or updating this relationship?
I would really be glad for any help!
Tino
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]