Re: [castor-dev] bug and fix for generation with type

2002-12-31 Thread Dean Hiller
whoops, ignore my fix.  I found my fix to be incomplete.  Elements with anonymous types still have to be generated.  I need to look further at this one thursday. sorry about that, Dean Dean Hiller wrote: Generation from attached schema generates code that doesn't compile if the type method

[castor-dev] bug and fix for generation with type

2002-12-31 Thread Dean Hiller
Generation from attached schema generates code that doesn't compile if the type method is used to generate the code. It generates a class that inherits from itself. I found this can be fixed by changing line 1161 in SourceGenerator(inside function createClasses(Schema, SGStateInfo) from while(str

[castor-dev] Problem with relationship update

2002-12-31 Thread Fabio Andrés Zorzan
Hello, I am having problems when update a relationship beetwen two Objects. The updates do not have effects. What can is happening? Thanks, Fabio _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visít

Re: [castor-dev] Incorrect namespace reference in Castor generated XML

2002-12-31 Thread Vinay Joshi
Hi Arnaud, Ok, I will try with the latest CVS code.Wish you all there a very Happy, Healthy, Safe and Prosperous New Year. Regards,Vinay.   Original Message Follows From: "Arnaud Blandin" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [castor-dev]

Re: [castor-dev] fix for optional types

2002-12-31 Thread Dean Hiller
Ok, I think I understand, but I think there may still be a small bug. Maybe we want the line changed from if((!type.isEnumerated()) && jType.isPrimitive()) to if((!type.isEnumerated()) && jType.isPrimitive() && !isRequired()) The reason I ask is in the attached schema, there is a required field

Re: [castor-dev] here is a feature submission - suffix

2002-12-31 Thread Dean Hiller
thanks Rhett, Arnaud, I didn't know this functionality existed. Dean Rhett Sutphin wrote: Hi Dean, This functionality is implied by the binding file schema, though I haven't tried it. To do what you want, it looks like you'd do something like this: ... Abstract .

Re: [castor-dev] Design issue: Overly producing value objects

2002-12-31 Thread Arnaud Blandin
Hi Simon, You can use the 'type' method for generating the classes. For more information, please take a look at: http://www.castor.org/sourcegen.html#Class-Creation/Mapping Bear in mind that castor generates Java classes to represent the hierarchy defined in your XML Schema so if you have defined