You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Marc Dugger <md...@sunsetdirect.com> on 2003/06/02 19:50:26 UTC
persistence aware
Are there any call-back methods that can be implemented so that the
application will be aware of an OM object being inserted/updated? If
not, can anyone suggest any extension points where it would be
appropriate to implement such functionality?
RE: persistence aware
Posted by Hugh Brien <hp...@comcast.net>.
Marc,
I don't think the functionality you are looking for is in Torque but you
could add it. You could try the following:
1. Extend org.apache.torque.om.BaseObject to add the appropriate
functionality.
2. Then in your schema file in the <database> tag.
<database
name="test"
defaultIdMethod="idBroker"
baseClass="com.myapp.om.BaseClass" <== Set this to your new class the
extends BaseObject.
basePeer="com.myapp.om.BasePeer">
<table name="SIMPLE">
3. Generate Your Classes using Torque.
r,
Hugh
-----Original Message-----
From: Marc Dugger [mailto:mdugger@sunsetdirect.com]
Sent: Monday, June 02, 2003 1:50 PM
To: torque-user@db.apache.org
Subject: persistence aware
Are there any call-back methods that can be implemented so that the
application will be aware of an OM object being inserted/updated? If
not, can anyone suggest any extension points where it would be
appropriate to implement such functionality?