public MetamodelImpl(EntityManager em) { // Create a new Metamodel using the EclipseLink session on the EM this(JpaHelper.getEntityManager(em).getAbstractSession()); }
/** * Set an implementation-specific hint. If the hint name is not recognized, * it is silently ignored. * * @throws IllegalArgumentException * if the second argument is not valid for the implementation. */ protected void setHintInternal(String hintName, Object value) { cloneSharedQuery(); ClassLoader loader = getEntityManager().getAbstractSession().getLoader(); DatabaseQuery hintQuery = QueryHintsHandler.apply(hintName, value, getDatabaseQueryInternal(), loader, (AbstractSession) getActiveSession()); if (hintQuery != null) { setDatabaseQuery(hintQuery); } }