You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "srikanth raghupatruni (JIRA)" <ji...@apache.org> on 2015/11/18 06:22:11 UTC
[jira] [Commented] (OLINGO-706) Nullable is set to true for all the
relations JPA
[ https://issues.apache.org/jira/browse/OLINGO-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010268#comment-15010268 ]
srikanth raghupatruni commented on OLINGO-706:
----------------------------------------------
Thanks for the update and working on this issue.
> Nullable is set to true for all the relations JPA
> -------------------------------------------------
>
> Key: OLINGO-706
> URL: https://issues.apache.org/jira/browse/OLINGO-706
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.3
> Reporter: srikanth raghupatruni
> Assignee: Michael Bolz
> Priority: Blocker
> Fix For: V2 2.0.6
>
>
> For all the relations defined as ManyToOne, the field type is getting set as not nullable. As per my data model , the foriegnkey field can be null.
> I tried setting the below annotations but the metadata is getting generated as nullable = false
> @ManyToOne(optional = true)
> @JoinColumn(name = "page",columnDefinition="integer",nullable=true)
> private Page parentPage
> here page is my database column which can be null and have a relation defined with Master table Page on Column Id.
> Because of this I am unable to read, write the data by setting the page field value as null
> How can I make the nullable = true
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)