[ https://issues.apache.org/jira/browse/GEODE-4295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Swapnil Bawaskar closed GEODE-4295. ----------------------------------- > 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 > Fix For: 1.5.0 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > 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)