In the mapping.xml the tag 'cache-type' needs to be set if you want to use
long
transactions. How should it be set? How to specify the time limit value (30
minutes or so), or the count limit value.
Example file 'mapping.xml':
----------------------------------------------------------------------------
----
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
"http://castor.exolab.org/mapping.dtd">
<mapping>
<key-generator name="SEQUENCE" alias="pfm_export_restrictions_seq">
<param name="sequence" value="ern_seq" />
<param name="returning" value="true" />
</key-generator>
<class name="com.shell.septar.pims.business.data.ExportRestriction"
identity="id" key-generator="pfm_export_restrictions_seq">
<description>ExportRestriction</description>
<!-- Is this correct? -->
<cache-type type="time-limited" />
<map-to table="pfm_export_restrictions" />
<field name="id" type="integer">
<sql name="eccn_code_id" type="numeric" />
</field>
<field name="eccnCode" type="string">
<sql name="eccn_code" type="varchar" />
</field>
<field name="description" type="string">
<sql name="description" type="varchar" />
</field>
<field name="change.reason" type="string">
<sql name="reason_change" type="varchar" />
</field>
<field name="change.date" type="date">
<sql name="last_change_date" type="date" />
</field>
<field name="change.by" type="integer">
<sql name="last_change_by" type="numeric" />
</field>
</class>
</mapping>
----------------------------------------------------------------------------
----
This e-mail and any attachment is for authorised use by the intended recipient(s)
only. It may contain proprietary material, confidential information and/or be subject
to legal privilege. It should not be copied, disclosed to, retained or used by, any
other party. If you are not an intended recipient then please promptly delete this
e-mail and any attachment and all copies and inform the sender. Thank you.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev