Jan, could you provide a simple test case with one table (sql script to
create table in Oracle) and generated class.
We will reproduce and try to resolve this issue.
Also, please specify what version of Oracle do you use.

Thanks.

On Wed, Mar 30, 2016 at 9:40 PM, jan.swaelens <jan.swael...@sofico.be>
wrote:

> Hello,
>
> I am experimenting with the auto schema generator functionality and
> experience the following issue. I have a table with a declared 'DATE'
> column
> (Oracle). When loading the cache it actually gets a 'Timestamp' typed value
> from the recordset.
>
> Looking in the following method I see no logic to intercept this
> difference:
>
> org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.getColumnValue(ResultSet,
> int, Class<?>)
>
> The table is defined as follows:
>   CREATE TABLE "ACTIVITY"
>    (    "ACTIVITY_ID" NUMBER(12,0),
> ..
>         "DUEDATE" DATE,
> ...
>    )
>
> In there the 'due date' field is correctly typed but the actual query (and
> resulting rs) contains a 'Timestamp'.
>
> Adapting the generated code seems to resolve it (not completely sure as I
> am
> hitting some other mapping mismatches), but that would be rather painful
> when generating increments whenever we alter our model.
>
> What would be the best approach here?
>
> This is on latest Ignite release.
>
> br
> Jan
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-Schema-Import-Utility-Mismatch-when-loading-data-between-Date-and-Timestamp-tp3790.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Reply via email to