Tiago Marques Godinho created IGNITE-22354:
----------------------------------------------

             Summary: Raise an Error when trying to automap a POJO with 
unsupported fields
                 Key: IGNITE-22354
                 URL: https://issues.apache.org/jira/browse/IGNITE-22354
             Project: Ignite
          Issue Type: Improvement
            Reporter: Tiago Marques Godinho


The Mapper API has a feature to automatically map all the properties from POJOs.

However, the current implementation of this automap feature picks up all the 
attributes from the POJO, even if mapping them to the Ignite Table Schema is 
not possible.
This is the case of POJOs with nested POJOs.
For instance, the [AI2 example 
Organization|https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/model/Organization.java]
 has the attribute `addr` which cannot be correctly mapped.
This behavior causes problems with the Table API down the road.

The Mapper API should raise an error when trying to automap a POJO with 
unsupported fields.



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

Reply via email to