You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Belyak (Jira)" <ji...@apache.org> on 2021/11/16 06:30:00 UTC
[jira] [Assigned] (IGNITE-15785) POJO validation against the schema.
[ https://issues.apache.org/jira/browse/IGNITE-15785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Belyak reassigned IGNITE-15785:
-----------------------------------------
Assignee: Alexander Belyak
> 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
> Assignee: Alexander Belyak
> Priority: Major
> Labels: ignite-3
>
> Let's verify POJO class is compatible with the current schema.
> 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.20.1#820001)