ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chevy <chetan.v.ya...@target.com>
Subject Class objects are fetched as string when JDBC api is used
Date Sun, 06 Nov 2016 14:56:42 GMT

  After adding data to cache, i am try to fetch it using JDBC api and below
statement -
*rs = conn.createStatement().executeQuery("select * from SalesModel where
_key=" + storeId);*

Issue: Values other than class objects is retrieved correctly but class
objects are taken as strings as shown below -

*TODAYDATA*: "com.target.ignite.model.TdyFeedModel@2306117a",
*WEEKTODATE*: "com.target.ignite.model.WtdFeedModel@47de79ca",
STOREID: 1234,
*MONTHTODATE*: "com.target.ignite.model.MtdFeedModel@c3179f1",
*PREVIOUSDAY*: "com.target.ignite.model.WtdFeedModel@4f1c611a",
ID: "2016-10-24,1234",
_KEY: 3,
*_VAL*: "com.target.ignite.model.SalesModel@75c7cc6c",
SALESDATE: "2016-10-24"

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

View raw message