[
https://issues.apache.org/jira/browse/OLINGO-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010272#comment-15010272
]
Michael Bolz commented on OLINGO-706:
-------------------------------------
Hi [~srikanth.raghupatruni],
No problem and thanks for validation of the fix and closing the issue.
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)