| I see that JpaMetamodelEntityInformation is importing javax.persistence.metamodel.Metamodel. The Javadoc for javax.persistence.metamodel.Metamodel#managedType says: {{ * @throws IllegalArgumentException if not a managed class}} so there's not much we can do about that. I believe that calling {{org.hibernate.Metamodel#entity(String entityName)} would return null. |