[
https://issues.jboss.org/browse/TEIIDDES-2934?page=com.atlassian.jira.plu...
]
Van Halbert commented on TEIIDDES-2934:
---------------------------------------
the ProtobufAnnotation.getGetterMethodAnnotation method needs to be checked:
return "\t" + PROTOFIELD + "(number = " + col.getOrder() + ",
required = " + (col.isRequired() ? col.isRequired() : col.isMandatory()) +
")";
Is seems the condition of (col.IsRequired() or col.isMandatory()) is always resulting in
true. That maybe the issue.
Generated JDG modul have required in annotation for each of getters
-------------------------------------------------------------------
Key: TEIIDDES-2934
URL:
https://issues.jboss.org/browse/TEIIDDES-2934
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 10.0.2
Reporter: Matej Kralik
Assignee: Barry LaFond
Priority: Critical
Attachments: jdgTestComplete.zip, screenshot.png
When I deploy dynamic VDB, server shows error that:
{code:java}
org.teiid.core.TeiidException: Required field must not be null : subtitle
{code}
I noticed that generated JDG class have all getters to required but in the model have set
nullable to 'no_nulls' only one column(screenshot). Source db contains some row
which have subtitle columns set to null. In the attachment is the project.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)