Closed JhoeRamosRomero closed 4 years ago
Your are lost in Github world. Real trouble. This is com.sap.olingo/odata4-jpa-processor
-land.
Sorry, but your question is irrelevant in this project.
Good journey home, kid.
This issue can be closed.
The OData V2 JPA Processor is part or the Olingo Project. You will need to create an issue there: https://issues.apache.org/jira/projects/OLINGO/issues/
Run:
http://localhost:8080/odata.svc/$metadata
This is error:
org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAModelException: "OData - JPA Model Processor: Reference attribute not found in JPA entity [Name -> Department]"
@Getter @Setter @ToString @NoArgsConstructor @AllArgsConstructor public class EmployeeId implements Serializable {
}
@Getter @Setter @ToString @NoArgsConstructor @AllArgsConstructor
public class DepartmentId implements Serializable {
}
@Getter @Setter @ToString @NoArgsConstructor @AllArgsConstructor
@Entity @Table(name = "Employee") @IdClass(EmployeeId.class) public class Employee {
}
@Getter @Setter @ToString @NoArgsConstructor @AllArgsConstructor
@Entity @Table(name = "Department") @IdClass(DepartmentId.class) public class Department {
}
pom.xml