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 11:55:29 +0100

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>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*
>
> [image: cid:image001.gif@01C93387.B2AD1960] <http://www.stesud.com/>
>
> *[image: 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*
>
> *[image:
> http://t0.gstatic.com/images?q=tbn:shOUazya3UTGpM:http://www.sciage-carottage-normandie.fr/img/logo_tel.jpg]**+32(0)84/31
> 13 31 <%2B32%280%2984%2F31%2013%2031>* *[image:
> 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 <%2B32%280%2969%2F56%2005%2019>* *[image: Afficher l'image
> d'origine]* <acropole_at_stesud.eu>*olivier.vincent_at_stesud.eu
> <acropole_at_stesud.eu>*
>
>
>




image005.jpg
(image/jpeg attachment: image005.jpg)

image002.jpg
(image/jpeg attachment: image002.jpg)

image004.jpg
(image/jpeg attachment: image004.jpg)

image001.gif
(image/gif attachment: image001.gif)

image003.jpg
(image/jpeg attachment: image003.jpg)