db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugh Brien <hpbr...@comcast.net>
Subject RE: persistence aware
Date Mon, 02 Jun 2003 22:27:01 GMT
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?


Mime
View raw message