Hi Joseph,

You can take the same approach in Castor. If Castor generates a class A
with ADescriptor then to add business logic simply extend that class A
to add your necessary code in it. Then make sure you create an empty
descriptor for it:

public class ABusinessDescriptor extends ADescriptor{
}

Hope that helps,
Arnaud

> -----Original Message-----
> From: Joseph Panico [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 14, 2002 1:05 AM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] binding into cutom subclasses of the generated
classes
> 
> Hello,
> 
> We would like to use SourceGen to automatically manage (generate) the
java
> XML content classes through the evolution of our schema. That is, any
time
> we change schema, we just regenerate the classes. But we would also
like to
> put custom domain ("business") logic on those same java content
classes. In
> JAXB-ea we can do this by subclassing the generated classes and
putting our
> domain logic on the subclasses. We can then tell JAXB that at run-time
it
> should bind into our custom subclasses.
> 
> How can we do this in Castor?
> 
> Joseph Panico
> [EMAIL PROTECTED]
> 
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to