dev@jaxb.java.net

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

From: Gary Gregory <ggregory_at_rocketsoftware.com>
Date: Tue, 5 Nov 2013 11:52:42 +0000

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/31 13 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@stesud.eu> olivier.vincent@stesud.eu<mailto:acropole@stesud.eu>




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

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

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

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

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