Thanks Keith,
I used this :
<?xml version="1.0" encoding="UTF-8"?>
<cbf:binding xmlns:cbf="http://www.castor.org/SourceGenerator/Binding"
defaultBindingType='element'>
<cbf:elementBinding name="/DataContainer/cardRecord">
<cbf:java-class name="cardRecords"/>
</cbf:elementBinding>
</cbf:binding>
to rename Class 'cardRecord' to 'cardRecords'. But it still does not work
:-(((((((
any idea?
Many thanks.
-Youssef
Keith Visco
<[EMAIL PROTECTED] An: [EMAIL PROTECTED]
com> Kopie:
Thema: Re: [castor-dev]
getter/setter, can anyone help me?
27.07.04 23:19
Bitte antworten
an castor-dev
You need to use a binding file to do this. You can see a sample of
binding file here:
http://castor.exolab.org/phpBB2/viewtopic.php?t=9
And there is more information here:
http://castor.exolab.org/sourcegen.html#Binding-File
--Keith
[EMAIL PROTECTED] wrote:
>
> Hello Bruce and all,
>
> is it possible to predefine the names of getter/setter methods for the
> castor generator??
>
> I have the following Problem:
> I defined an attribute 'cardRecordCount' and a tag 'cardRecord'.
> Castor creates the same method for both getter Methods which leads to an
> error.
>
> public java.lang.String getCardRecordCount()
> {
> return this._cardRecordCount;
> } //-- java.lang.String getCardRecordCount()
>
> /**
> * Method getCardRecordCount
> */
> public int getCardRecordCount()
> {
> return _cardRecordList.size();
> } //-- int getCardRecordCount()
>
> Thanks!!
> -Youssef
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev