Closed Valeri-Velev closed 8 months ago
Update:
Currently, only enum classes are visible in the response
Update #2:
when I call this '/v1' endpoint which should show all my entities I get a response this exception with status code 500 { "error": { "code": null, "message": "Cannot invoke \"javax.persistence.OneToOne.mappedBy()\" because the return value of \"java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class)\" is null" } }
And this happens only on the 1st invocation. Every other try to call the endpoint returns this. { "@odata.context": "$metadata", "value": [] }
After some investigation, I found an NPE in the code. You can see it on the attached screenshot.
This is the object for which the error occurs:
@Entity @Table(name = "edges") public class WorkflowEdge {
@Id @ManyToOne @JoinColumn(name = "id") private Workflow workflow;
@Id @JoinColumn(name = "source") private Workflow sourceWorkflow;
@Id @JoinColumn(name = "target") private Workflow targetWorkflow;
Best Regards, Valeri
Hello,
here we have two problems:
Hello,
Can I help somehow?
With release 1.1.1, an error message has been added.
I did the same as this example https://github.wdf.sap.corp/odata-jpa/odata-v4-jpa-spring-example but now when I try to reach my metadata I receive only this:
{ "@odata.context": "$metadata", "value": [] }
Could you help me?
Best Regards, Valeri