cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Artyukevich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1885) Null value in subclass's field.
Date Mon, 18 Nov 2013 16:17:33 GMT

     [ 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)

Mime
View raw message