Title: Message
Hi,
 
I've got a mapping that looks like this:
 
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
 <class name="com.marcat.pbtransform.dao.PBObject" identity="id" shortname="PBObject">
  <cache-type type="none"/>
  <map-to table="pbobject" xml="pbobject"/>
  <field name="id" type="long">
   <sql name="pbobjectid" type="bigint"/>
   <bind-xml name="id" node="attribute"/>
  </field>
  <field name="content" type="string">
   <sql name="content" type="clob" dirty="ignore"/>
   <bind-xml transient="true"/>
  </field>
  <field name="objectType" type="long">
   <sql name="pbobjecttype" type="bigint"/>
   <bind-xml name="object-type" node="attribute"/>
  </field>
  <field name="project" required="true" type="com.marcat.pbtransform.dao.Project">
   <sql name="projectid"/>
   <bind-xml transient="true"/>
  </field>
 </class>
 <class name="com.marcat.pbtransform.dao.Project" identity="id" shortname="Project">
  <cache-type type="none"/>
  <map-to table="project" xml="project"/>
  <field name="id" type="long">
   <sql name="projectid" type="bigint"/>
   <bind-xml name="id" node="attribute"/>
  </field>
  <field name="name" type="string">
   <sql name="name" type="varchar"/>
   <bind-xml name="name" node="attribute"/>
  </field>
  <field name="description" type="string">
   <sql name="description" type="varchar"/>
   <bind-xml name="description" node="attribute"/>
  </field>
 </class>
When I marshal PBObjects into xml, eventough the <bind-xml transient="true"/> element is set, Castor includes fully populated Project and Content elements ? Am I doing something wrong ?
 
Thanks,
 
Ijonas Kisselbach
Consultant
Marcat Ltd.

Strategy and Solutions for the Digital Economy

 
Ailsa Court
121 West Regent Street
Glasgow
G2 2SD
 
Tel: 0141 574 2500
Fax: 0141 574 2501
Mobile: 07866 685243
Web: www.marcat.com
 
CONFIDENTIAL:

This e-mail, its content and any files transmitted with it are intended only for the person it is addressed to - any other access is unauthorised and you must not copy or use the content. If you have received this in error, please destroy it and contact the sender by e-mail return.

DISCLAIMER:

Whilst we take reasonable precautions to minimise risk, you must carry out your own virus checks before opening attachments or reading e-mails and we do not accept liability for any damage or loss in this respect. This e-mail and its attachments may be subject to copyright protection and you should not retransmit or reproduce these without the consent of the author. Non-business related content is not authorised by us and we shall not be liable for it. We are also not responsible for changes made or occurring after this message was sent. Please note that our e-mail system  is subject to random monitoring and recording under the Regulation of Investigatory Powers Act 2000.

 
BEGIN:VCARD
VERSION:2.1
N:Kisselbach;Ijonas
FN:Ijonas Kisselbach
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20020718T143312Z
END:VCARD


Reply via email to