Hi All-
I am running into an interesting issue.
Please take a look at below xml(search.xml),after marshalling I need to
produce it. 
As I understand, I can use the same xml to get schema and generate classes
from there and use in marshalling.
Somehow I am not getting Criteria Object generated,as I guess code generator
is not able to distinguish 
top level 'CriteriaExpression" Node and the one which has Criteria Node in
it?and it is affecting mapping file too.

search.xml
<?xml version="1.0" encoding="UTF-8"?>
<CriteriaExpression>
        <CriteriaOperator tc="2">AND</CriteriaOperator>
        <CriteriaExpression>
                <Criteria>
                        <ObjectType tc="115"/>
                        <PropertyName>FirstName</PropertyName>
                        <PropertyValue>Joe</PropertyValue>
                        <Operation tc="7"/>
                </Criteria>
        </CriteriaExpression>
        <CriteriaExpression>
                <Criteria>
                        <ObjectType tc="115"/>
                        <PropertyName>LastName</PropertyName>
                        <PropertyValue>Johnson</PropertyValue>
                        <Operation tc="1"/>
                </Criteria>
        </CriteriaExpression>
                        <CriteriaOperator tc="1">OR</CriteriaOperator>
                <CriteriaExpression>
                <Criteria>
                        <ObjectType tc="116"/>
                        <PropertyName>Zip</PropertyName>
                        <PropertyValue>123345</PropertyValue>
                        <Operation tc="2"/>
                </Criteria>
        </CriteriaExpression>
</CriteriaExpression>

I tries some variations/twick in schema but still not able to get the
desired result.
Please advice.

Thanks,
~Sam
-- 
View this message in context: 
http://old.nabble.com/source-code-generation-issue-tp27682229p27682229.html
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to