I've seen your comment in Jira. I am not sure whether you are really facing the same issue as reported in CASTOR-1338 (which happens to be about <xs:list> elements.
As Ralf already said, in element mode no class will be generated for a simple type (apart from enumerations). That does not explain, though, why the setter/getter methods are generated incorrectly (as far as I can tell). Werner Babboia wrote: > Hi, i just tried with latest release but nothing happens. > > the fact is that when i use an element type="TIPO_CAUSALE" > the getter and setter for that field accepts/gives a Object > not a String > > cheers > > Ralf Joachim ha scritto: >> Hi Babboia, >> >> if you just started with Castor, why do you use the very old 0.9.5 >> release instead of current 1.1.2.1? >> >> As I'm not an expert on codegen I can only guess that classes are only >> created for comlex types but not for simple types. Apart of that I >> have no idea why nothing got generated. >> >> Regards >> Ralf >> >> >> Babboia schrieb: >>> Hello everyone, I'm a new user of castor >>> >>> i'm using castor 0.9.5. >>> >>> i explain my problem: >>> >>> i have this commons_bbp.xsd : >>> >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >>> targetNamespace="http://myapp/commons2_bbp" >>> xmlns="http://myapp/commons2_bbp"> >>> <xs:simpleType name="TIPO_CAUSALE"> >>> <xs:restriction base="xs:string"> >>> <xs:pattern value="\*|[A-Za-z0-9][A-Za-z0-9][A-Za-z0-9]"/> >>> </xs:restriction> >>> </xs:simpleType> >>> </xs:schema> >>> >>> >>> i dont know why the sourceGenerator doesnt create any class having this >>> schema... >>> >>> it doesnt trow any kind of errors also. >>> all seems fine. >>> >>> >>> any clue? >>> thanks in advance, >>> cheers >>> > > --------------------------------------------------------------------- > 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

