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

Tiago Marques Godinho updated IGNITE-20952:
-------------------------------------------
    Summary: Mapper expects columns for static and transient attributes  (was: 
Mapper expects collumns for static and transient attributes)

> Mapper expects columns for static and transient attributes
> ----------------------------------------------------------
>
>                 Key: IGNITE-20952
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20952
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Tiago Marques Godinho
>            Priority: Major
>
> The default Mapper implementation expects columns to be created for static 
> and transient attributes of the POJO.
> I was not expecting this behaviour. Traditionally, static and transient 
> attributes should not be persisted by default.
> *Evidence:*
> Got the following error message when creating a Mapper for the [Person 
> POJO|https://github.com/apache/ignite/blob/2380ff35d69dc09000886c9df64dc76352022e70/examples/src/main/java/org/apache/ignite/examples/model/Person.java#L29]
>  with:
> {code:java}
> t.keyValueView(Integer.class, Person.class);{code}
> {{Error:}}
> {code:java}
> SEVERE: Failed to deserialize server response 
> [remoteAddress=127.0.0.1:10800]: Fields [ID_GEN, ORG_SALARY_IDX, key] of type 
> org.apache.ignite.examples.model.Person are not mapped to columns
> java.lang.IllegalArgumentException: Fields [ID_GEN, ORG_SALARY_IDX, key] of 
> type org.apache.ignite.examples.model.Person are not mapped to columns {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to