dev@jaxb.java.net

Re: JAXB : to generate hashcode(), equals() and toString() methods ?

From: Przemysław Bielicki <pbielicki_at_gmail.com>
Date: Tue, 5 Nov 2013 13:31:32 +0100

So, the question was about XJC instead of JAXB :) That's correct - Lombok
won't help here.

Cheers,
Przemyslaw


On Tue, Nov 5, 2013 at 12:52 PM, Gary Gregory
<ggregory_at_rocketsoftware.com>wrote:

> But you cannot use lombok on an XML Schema...
>
> Gary
>
>
> -------- Original message --------
> From: Przemysław Bielicki
> Date:11/05/2013 05:56 (GMT-05:00)
> To: dev_at_jaxb.java.net
> Subject: Re: JAXB : to generate hashcode(), equals() and toString()
> methods ?
>
> Hi Olivier,
>
> why don't you use @EqualsAndHashCode and @ToString annotations from lombok
> (http://projectlombok.org/) ?
>
> I don't think it's JAXB's responsibility to generate these methods.
>
> I hope it helps.
>
> Cheers,
> Przemyslaw
>
>
> On Tue, Nov 5, 2013 at 11:34 AM, Olivier Vincent <
> olivier.vincent_at_stesud.eu<mailto:olivier.vincent_at_stesud.eu>> wrote:
> Hi,
>
> Will it be possible to generate hashcode(), equals() and toString()
> methods with a next version of JAXB ? And if so, is it planned in a roadmap
> ?
> Or should we always use the JAXB2 Basics Plugin ?
>
> Because, this plugin is used by many people and, I think, is very
> interesting for the JAXB project.
>
> Thanks in advance,
>
> Best Regards,
>
>
> Olivier Vincent
> [cid:image001.gif@01C93387.B2AD1960]<http://www.stesud.com/>
> [Afficher l'image d'origine]<
> http://fr-be.mappy.com/map#d=Rue+Andr%C3%A9+Feher,+6900,+Marche-en-Famenne,+R%C3%A9gion+Wallonne,+Belgique>
> Site du Hainaut : Rue d'Ath, 33A, 7900
> Leuze-en-Hainaut
> [
> http://t0.gstatic.com/images?q=tbn:shOUazya3UTGpM:http://www.sciage-carottage-normandie.fr/img/logo_tel.jpg]+32(0)84/3113 31<tel:%2B32%280%2984%2F31%2013%2031> [
> http://t3.gstatic.com/images?q=tbn:vPdPV38d_jdziM:http://www.sciage-carottage-normandie.fr/img/logo_fax.jpg]
> +32(0)69/56 05 19<tel:%2B32%280%2969%2F56%2005%2019> [Afficher l'image
> d'origine] <mailto:acropole_at_stesud.eu> olivier.vincent_at_stesud.eu<mailto:
> acropole_at_stesud.eu>
>
>
>