You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2015/11/17 19:56:11 UTC

[jira] [Resolved] (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:all-tabpanel ]

Michael Bolz resolved OLINGO-706.
---------------------------------
       Resolution: Fixed
    Fix Version/s: V2 2.0.6

Hi [~srikanth.raghupatruni],

with fix of https://issues.apache.org/jira/browse/OLINGO-824 also this issue should be solved.
Can you please check and if it is fixed for you close this issue.

Thanks and Best Regards,
Michael

> 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)