[
https://issues.apache.org/jira/browse/CAY-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Artyukevich updated CAY-1885:
----------------------------------
Attachment: 1885_test.patch
1885_fix.patch
Patch works for hierarchy with any number of subClasses. Change logic of
filling of HashMap for attribute and column descriptor. This hash map needs
when we put value from DB to object of subClass.
> Null value in subclass's field.
> -------------------------------
>
> Key: CAY-1885
> URL: https://issues.apache.org/jira/browse/CAY-1885
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library, ROP
> Affects Versions: 3.2M1
> Reporter: Oleg Artyukevich
> Fix For: 3.2M1
>
> Attachments: 1885_fix.patch, 1885_test.patch
>
>
> For objEntities:
> Product :
> - name
> Article :
> - expiryDate
> Voucher :
> - expiryDate
> where Voucher and Article are subclasses of Product, and table :
> product:
> - ID
> - NAME
> - EXPIRY_DATE
> SelectQuery fills "expiryDate" with null value (except objects of first
> subClass, i.e. "Article").
--
This message was sent by Atlassian JIRA
(v6.1#6144)