On Sep 12, 2004, at 3:01 AM, Charles Anthony wrote:

a) Implement org.apache.ojb.broker.PersistenceBrokerAware on the domain
object : the domain object knows when it is being modified, and so can add
itself to the index. Not such a good idea for many people, as your domain
object is reliant on both Lucene && OJB, although perfectly feasible for a
small project.

Good idea!

Use static advice (cross type stuff) and provide the callbacks and behavior via a mixin ;-) The model remains unaware of OJB or Lucene, but the behavior is placed where it makes sense -- on the model instances.

-Brian



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to