[
https://issues.apache.org/jira/browse/GEODE-4295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated GEODE-4295:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Darrel Schneider
> Priority: Major
> Labels: pull-request-available
>
> 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)