[ 
https://issues.apache.org/jira/browse/OLINGO-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Amend resolved OLINGO-608.
------------------------------------
    Resolution: Information Provided
      Assignee: Christian Amend

Hi there is no nullable attribute for Navigation Properties. the definition is 
done by defining the Multiplicity of an Association. Here you can specify 0 to 1

> JPAProcessor: @ManyToOne dependencies cannot be set to nullable=true
> --------------------------------------------------------------------
>
>                 Key: OLINGO-608
>                 URL: https://issues.apache.org/jira/browse/OLINGO-608
>             Project: Olingo
>          Issue Type: Bug
>    Affects Versions: V2 2.0.3
>            Reporter: Christian Wilhelm
>            Assignee: Christian Amend
>
> The annotation "nullable" = true seems to be ignored by the JPA Processor.
> Here the coding:
>     @ManyToOne(fetch = FetchType.LAZY)
>     @JoinColumn(name = "PRODUCT_UUID", nullable = true)
>     public Product getProduct()
>     {
>         return product;
>     }
> Result:
> <Property Name="Product" Type="Edm.String" Nullable="false" MaxLength="255"/>
> <NavigationProperty Name="ProductDetails" 
> Relationship="com.sap.ehsod.c4pss.tenant.CRAssignment_Product0" 
> FromRole="CRAssignment" ToRole="Product"/>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to