Ramesh Reddy created TEIIDSB-105:
------------------------------------
Summary: Modelling a Json entitty with array of "details"
Key: TEIIDSB-105
URL:
https://issues.jboss.org/browse/TEIIDSB-105
Project: Teiid Spring Boot
Issue Type: Enhancement
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
When using the @JsonTable the construct only supports reading the array type of same data
types, with mixed type it does not work. For ex:
{code}
[1, 1, 3]
{code}
works, but
{code}
[1, "two", 3.0]
{code}
does not work. If the user chooses to read it as a string array converting the values to
match Teiid semantics it is not possible. However, when it is created as
{code}
{ id: 1, desc: "two", weight: 3.0}
{code}
can be read an entity. The array form could also be modeled as an entity with single
parameter as `string[]`
--
This message was sent by Atlassian Jira
(v7.12.1#712002)