Fred Krone created GEODE-4295:
---------------------------------
Summary: 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: extensions
Reporter: Fred Krone
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
(v6.4.14#64029)