The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Using EclipseLink 2.7.10 I'm having an issue with ManyToOne navigational property (it is using part of the composite key).
Navigation property annotations:
@ManyToOne(fetch = FetchType.LAZY, optional = false) @PrimaryKeyJoinColumn(name = "id", referencedColumnName = "other_id")
I have also tried usual @JoinColumn both with @EmbededId and with @ClassId.
On the other end property is annotated as:
@OneToMany(mappedBy = "comment", fetch = FetchType.LAZY)
Error happens during first metadata generation and it's a NullPointerException in IntermediateNavigationProperty at line 244. I can confirm that cardinalityMtO at that point ends up being null.
Using EclipseLink 2.7.10 I'm having an issue with ManyToOne navigational property (it is using part of the composite key). Navigation property annotations:
@ManyToOne(fetch = FetchType.LAZY, optional = false) @PrimaryKeyJoinColumn(name = "id", referencedColumnName = "other_id")
I have also tried usual @JoinColumn both with @EmbededId and with @ClassId. On the other end property is annotated as:@OneToMany(mappedBy = "comment", fetch = FetchType.LAZY)
Error happens during first metadata generation and it's a NullPointerException in IntermediateNavigationProperty at line 244. I can confirm that cardinalityMtO at that point ends up being null.