[
https://issues.apache.org/jira/browse/OLINGO-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13767649#comment-13767649
]
Carl J. Mosca commented on OLINGO-9:
------------------------------------
In order to test the changes with a database which contains null values for
some char columns, it appears that a null test should be added to the
getPropety method of JPAEntityParser around line 357.
} else if (returnType.equals(Character.class)) {
Character c = (Character) method.invoke(entity);
if (c != null) {
propertyValue = toString(new Character[]{c});
}
} else {
> JPA - support for char type
> ---------------------------
>
> Key: OLINGO-9
> URL: https://issues.apache.org/jira/browse/OLINGO-9
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: 1.0.0
> Reporter: Carl J. Mosca
> Assignee: Chandan V.A
> Priority: Blocker
> Labels: char, features
> Fix For: 1.0.0
>
>
> An apparent known limitation, only Strings are currently supported.
> In order to get it working for the time being, I modified the
> JPATypeConverter to include char.class and Character.class along with
> String.class.
> This is not a fix because it does not address the reverse mapping but
> hopefully it keeps it on the radar.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira