| What I am trying to say with "must not" is that if you return a ManagedType instance at all, it needs to behave like specified. Nowhere in the spec or the JavaDoc is stated that null is a valid return value for the call to that very method. JPA interfaces generally explicitly document if methods are allowed return null, see EntityManager.findOne(Class<T>, Object). |