Hi Arnaud,
I tried the method u suggests, using the "mixed" style and also my own
implementation of XMLNaming.
Both gives me the same error: unable to find or create a ClassDescriptor for
class
Marshalled document:
<?xml version="1.0" encoding="UTF-8"?>
<DataFilter type="default" andOr="">
<Filter negate="false">
<ValueFilter>
<FilterField>TEST_FIELD_ID_1</FilterField>
<DomainValues>TEST_FIELD_ID_1</DomainValues>
<DomainValues>TEST_FIELD_ID_2</DomainValues>
<DomainValues>TEST_FIELD_ID_3</DomainValues>
</ValueFilter>
<NextFilter negate="false">
<ValueFilter>
<FilterField>TEST_FIELD_ID_2</FilterField>
<HighValue>999999</HighValue>
<LowValue>1</LowValue>
</ValueFilter>
<NextFilter negate="true">
<ValueFilter>
<Operator>=</Operator>
<FilterField>TEST_FIELD_ID_3</FilterField>
<SingleValue>true</SingleValue>
</ValueFilter>
</NextFilter>
<NextConnector>or</NextConnector>
</NextFilter>
<NextConnector>and</NextConnector>
</Filter>
</DataFilter>
unable to find or create a ClassDescriptor for class: FilterField
unable to find or create a ClassDescriptor for class: my.FilterField
Regards,
Sok Lay
-----Original Message-----
From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Marshalling/UnMarshalling behaviour
differences between Castor 0.8.11 and Castor 0.9.x
Hi Lois,
If you want the correct output, you should use the naming property in
the castor.properties:
# Defines the Naming "style" or conventions to use when
# creating XML names from Java class or field names.
# Valid values are as follows:
# -----------------------------------------------------------------
# lower (default) | All names are lowercase with hyphens
# | separating words.
# |
# | Example: personInfo = person-info
# -----------------------------------------------------------------
# mixed | All names are mixed case, with Uppercase
# | character as the first letter of a new word.
# |
# | Example: personInfo = personInfo
# | Example: FooBar = fooBar
# -----------------------------------------------------------------
# {Any ClassName} | Any Class which implements
# | org.exolab.castor.xml.XMLNaming
# -----------------------------------------------------------------
But since I don't see the xsi-type in the xml generated, I am afraid we
reach a problem here. In any case let me know what happen when using the
naming property.
Arnaud
> -----Original Message-----
> From: Neo Sok Lay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 29, 2002 4:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Marshalling/UnMarshalling behaviour
differences
> between Castor 0.8.11 and Castor 0.9.x
>
> Hi Arnaud,
>
> But that means I can't choose the tag name of the elements?
> I tried but besides that tag name problem, it can't deserialize back
my java
> object. It gives me null.
>
>
> Marshalled document using "auto-complete":
>
> <?xml version="1.0" encoding="UTF-8"?>
> <DataFilter type="default" andOr="">
> <Filter negate="false">
> <ValueFilter>
> <filter-field>TEST_FIELD_ID_1</filter-field> <!-- I
need
> the tag to be FilterField -->
> <domain-values>TEST_FIELD_ID_1</domain-values> <!--
This is a
> vector collection field -->
> <domain-values>TEST_FIELD_ID_2</domain-values> <!-- I
need
> the tag to be DomainValue -->
> <domain-values>TEST_FIELD_ID_3</domain-values>
> </ValueFilter>
> <NextFilter negate="false">
> <ValueFilter>
> <filter-field>TEST_FIELD_ID_2</filter-field> <!-- I
need
> the tag to be FilterField -->
> <high-value>999999</high-value>
<!-- I need the
> tag to
> be HighValue -->
> <low-value>1</low-value>
<!-- I need the
> tag to be
> LowValue -->
> </ValueFilter>
> <NextFilter negate="true">
> <ValueFilter>
> <Operator>=</Operator>
> <filter-field>TEST_FIELD_ID_3</filter-field>
<!-- I
> need the tag to be FilterField -->
> <single-value>true</single-value>
<!-- I need
> the tag
> to be SingleValue -->
> </ValueFilter>
> </NextFilter>
> <NextConnector>or</NextConnector>
> </NextFilter>
> <NextConnector>and</NextConnector>
> </Filter>
> </DataFilter>
>
> Any clues?
>
> Regards,
> Lois
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev