Page 1 of 1

About Question enthuware.ocejws.v6.2.209 :

Posted: Sat Jul 14, 2018 12:35 pm
by javabean68
Hi Frits

you says
The MathTable class is a JAXB application class (and JAX-RS provides a standard MessageBodyReader and MessageBodyWriter for JAXB classes)
@XmlRootElement
Is the toString method in the JAXB class then necessary? :?:

Thanks
Regards
Fabio

Re: About Question enthuware.ocejws.v6.2.209 :

Posted: Sun Jul 15, 2018 3:28 am
by fjwalraven
Hi Fabio,

Have you tried it without?

Regards,
Frits

Re: About Question enthuware.ocejws.v6.2.209 :

Posted: Thu Aug 30, 2018 4:34 am
by PaulWheeler
javabean68 wrote:
Sat Jul 14, 2018 12:35 pm
Hi Frits

you says
The MathTable class where can i find phen375 gnc is a JAXB application class (and JAX-RS provides a standard MessageBodyReader and MessageBodyWriter for JAXB classes)
@XmlRootElement
the toString method in the JAXB class then necessary? :?:

Thanks
Regards
Fabio
toString is used to reprsent the record values to human in a readable format. System.out.println(t) its the same System.out.println(t.toString()) toString is for other people to see what you class have so they can have an idea about you class.