You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by chevy <ch...@target.com> on 2016/11/09 06:50:20 UTC

Re: [EXTERNAL] Re: Class objects are fetched as string when JDBC api is used

I am not printing it out directly but converting resultset to list and passing to my rest-api. Overriding toString() provides me data on first level variables say class A but I have other class objects (say B) list inside A which is returning empty list even if I override toString() inside class B.

--
Regards,
Chetan.

From: "vkulichenko [via Apache Ignite Users]" <ml...@n6.nabble.com>
Date: Wednesday, November 9, 2016 at 3:57 AM
To: "Chetan.V.Yadav" <Ch...@target.com>
Subject: [EXTERNAL] Re: Class objects are fetched as string when JDBC api is used

To my knowledge, both JDBC driver and especially SqlFieldsQuery should return objects, not strings. However, if you print out these object and you didn't override toString, then you will get exactly what you shown in the output. Can this be the case?

-Val
________________________________
If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Class-objects-are-fetched-as-string-when-JDBC-api-is-used-tp8720p8799.html
To unsubscribe from Class objects are fetched as string when JDBC api is used, click here<http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8720&code=Y2hldGFuLnYueWFkYXZAdGFyZ2V0LmNvbXw4NzIwfC02OTIwMTYzODA=>.
NAML<http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Class-objects-are-fetched-as-string-when-JDBC-api-is-used-tp8720p8814.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: [EXTERNAL] Re: Class objects are fetched as string when JDBC api is used

Posted by vdpyatkov <vl...@gmail.com>.
Hi,

Difficult understand what are you meant.
Could you please provide full working example?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Class-objects-are-fetched-as-string-when-JDBC-api-is-used-tp8720p8828.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.