If the "Sender" element in the complex types deliverReqType and
readReplyReqType are defined as essentially the same element, then you
should be OK with ignoring the warnings.  If they are different types
(different selection of contents) then you'll need to use the binding
file to map the two elements with the "Sender" name to different Classes
for the source generator.  Maybe you could map one sender to the class
"DeliverySender" and the other to "ReplySender" or something like that,
for example.

        Eddie

-----Original Message-----
From: Thomas Varkey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 26, 2006 12:08 PM
To: [email protected]
Subject: [castor-user] Sourcegenerator - Class name generation conflict

Hi,

I am seeing this warning when I use the source generator, in castor
1.0.4, with a binding file.  Since it is "not recommended" to proceed as
the warning says, can some one help me resolve this issue? 
Thanks.

Warning: A class name generation conflict has occured between element
'complexType:deliverReqType/Sender' and element
'complexType:readReplyReqType/Sender'. Please use a Binding file to
solve this problem. Continue anyway [not recommended] (y|n|?)n

The command used :

java org.exolab.castor.builder.SourceGeneratorMain
-i mm7.xsd -binding-file C:\Tools\Castor\binding.xml -package
com.xyz.mm7

This question is associated with
http://jira.codehaus.org/browse/CASTOR-1649

Therefore, mm7.xsd is specified there.  The contents of binding.xml file
(received from Werner)

<binding xmlns="http://www.castor.org/SourceGenerator/Binding"; 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
            defaultBinding="element">

        <namingXML>
                <complexTypeName>
                        <suffix>Type</suffix>
                </complexTypeName>
        </namingXML>
        
</binding>



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

    http://xircles.codehaus.org/manage_email


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

    http://xircles.codehaus.org/manage_email

Reply via email to