You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2023/11/24 06:45:00 UTC
[jira] [Assigned] (IGNITE-20952) Mapper expects columns for static and transient attributes
[ https://issues.apache.org/jira/browse/IGNITE-20952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn reassigned IGNITE-20952:
---------------------------------------
Assignee: Pavel Tupitsyn
> 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
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
>
> 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)