[ 
https://issues.apache.org/jira/browse/IGNITE-15785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yury Gerzhedovich updated IGNITE-15785:
---------------------------------------
        Parent:     (was: IGNITE-15782)
    Issue Type: Improvement  (was: Sub-task)

> POJO validation against the schema.
> -----------------------------------
>
>                 Key: IGNITE-15785
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15785
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Andrey Mashenkov
>            Priority: Major
>              Labels: ignite-3
>
> Let's verify mapper is compatible with the current schema for the STRICT 
> schema mode.
> NB: Mapper result may not match the full schema for truncated objects.
> {code:java}
> class BillingDetails {
>     String owner;
> }
> class CreditCard extends BillingDetails {
>        long cardNumber;
>        int expYear;
>        int expMonth;
> }
> KeyValueView<Long, CreditCard> credCardKvView = 
> table.keyValueView(Long.class, CreditCard.class);
>    
> // Truncated view.
> KeyValueView<Long, BillingDetails> billingDetailsKVView = 
> table.keyValueView(Long.class, BillingDetails.class);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to