users@jaxb.java.net

Re: jaxb source code?

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Fri, 08 Aug 2003 15:18:16 -0400

David Walend wrote:

> Modify the code for ~300 generated source files, while the .xsd is
> changing a few times a day? Eek.
>
> The messages discuss both editing the generated code and tweaking jaxb.
> The first option won't work on this project.
>

I thought the idea was to use the xjb:superClass[1] customization and specify
a class that uses the apache EqualsBuilder:

Gary Gregory wrote:
>> You could try using the EqualsBuilder class from the Apache Jakarta
>> Commons Lang project. See
>> http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/builder/EqualsBuilder.html

I must confess that I haven't tried it yet, so I can't say whether or not
it works...

> If you'll post the source code, I'd be happy to post my patches.
>

We're working on it!

--Ryan

[1] http://java.sun.com/webservices/docs/1.2/jaxb/vendorCustomizations.html#superclass

> Thanks,
>
> Dave
>
> users-digest-help_at_jaxb.dev.java.net wrote:
>
>> Subject:
>> Re: jaxb source code?
>> From:
>> Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
>> Date:
>> Fri, 08 Aug 2003 08:32:36 -0700
>> To:
>> users_at_jaxb.dev.java.net
>>
>>
>>> I need to generate overrides for equals and hashcode with the rest of
>>> the source code I create. (Or to implement my own same[object]As()
>>> method.)
>>>
>>> Some earlier posts indicate that one way to do that is by modifying
>>> the jaxb source code.
>>>
>>
>> As Ted pointed out, I believe it means the generated code.
>>
>>
>>
>>> Neither java.net's repository nor the file sharing has source code.
>>> Where can I find it?
>>>
>>
>> We are still in the process of moving the code to java.net.
>>
>>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net