It's used as a "factory" method for creating the field, but it's limited
in such that the method must appear on the parent class of the field.

For example:

Foo {

   public Bar createBar() {
      ...
   }
}


Mapping file:

...

<class name="Foo">
   ...
   <field name="bar" type="Bar" create-method="createBar"/>
   ...
</class>
...

--Keith

Hudson Wong wrote:
> 
> Can anyone tell me the purpose of "create-method" in the mapping file?
> 
>   ------------------------------------------------------------------------
>                   Name: winmail.dat
>    winmail.dat    Type: application/ms-tnef
>               Encoding: base64

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to