[
https://issues.apache.org/jira/browse/CAY-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Artyukevich updated CAY-1885:
----------------------------------
Description:
For example have next objEntities:
Super :
- globalAttribute
Sub1 :
- sub1Attribute
Sub2 :
- sub2Attribute
where Sub1 and Sub2 are sub entities of Super entity, and table :
super:
- ID
- GLOBAL_ATTRIBUTE
- SUB_ATTRIBUTE
Then take records from db by entity "Super". Select Query filled
"sub2Attribute" with null values in all objects of Sub2, when "sub1Attribute"
filled with values from db.
was:
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").
> 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 example have next objEntities:
> Super :
> - globalAttribute
> Sub1 :
> - sub1Attribute
> Sub2 :
> - sub2Attribute
> where Sub1 and Sub2 are sub entities of Super entity, and table :
> super:
> - ID
> - GLOBAL_ATTRIBUTE
> - SUB_ATTRIBUTE
> Then take records from db by entity "Super". Select Query filled
> "sub2Attribute" with null values in all objects of Sub2, when "sub1Attribute"
> filled with values from db.
--
This message was sent by Atlassian JIRA
(v6.1#6144)