Re: java.lang.NullPointerException at org.eclipse.persistence.internal.jpa.metamodel.proxy.AttributeProxyImpl.getPersistentAttributeType(AttributeProxyImpl.java:78)
Turns out it did not work on 4.1 either. But the error message was a lot more descriptive. I removedan accidental comment of annotations and the metamodel and code matched again. The code now runs under 5.0 as well.