[
https://issues.apache.org/jira/browse/OLINGO-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14607676#comment-14607676
]
Chandan V.A commented on OLINGO-706:
------------------------------------
Hello Srikanth,
Can you please provide more details on metadata and the operation that you are
trying to execute.
Thanks
Kind Regards
Chandan
> 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
> Priority: Blocker
>
> 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)