You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Fred Krone (JIRA)" <ji...@apache.org> on 2018/02/01 21:24:00 UTC

[jira] [Updated] (GEODE-4295) Setting domain class on region-mapping but initial instance is always PdxInstance

     [ https://issues.apache.org/jira/browse/GEODE-4295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Krone updated GEODE-4295:
------------------------------
    Component/s:     (was: extensions)
                 regions

> Setting domain class on region-mapping but initial instance is always PdxInstance
> ---------------------------------------------------------------------------------
>
>                 Key: GEODE-4295
>                 URL: https://issues.apache.org/jira/browse/GEODE-4295
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Fred Krone
>            Priority: Major
>
> For JDBC Connector 
> Read serialized on the cache is set to false.  Region mapping was created with pdx-instance-type set to a specific domain class (example: Employee). This means it should return this class on reads using the JdbcLoader.  However the initial instance is a PdxInstance which results in a collision. 
> Something like Employee employee = region.get(2); <-- blows up
> The type is correct (Employee) but wont cast.
> [vm1] PDX Instance: PDX[14933766,org.apache.geode.connectors.jdbc.Employee]{first_name=Fred, hire_date=2018-01-12 00:00:00.0, id=3, last_name=Krone} read serialized: false



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)