Tried to test Person entity taken from
olingo-jpa-processor-v4/jpa/odata-jpa-test/src/main/java/com/sap/olingo/jpa/processor/core/testmodel/Person.java
root URL it works perfectly

Collection is also works perfect

But $metadata not

Getting error
OData Library: An exception without message text was thrown.
Onse deleting Persons entity and related classes, $metadata works again
