use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.
the class AbstractJPQLQueryHelperTest method entity.
protected IManagedType entity(IManagedTypeProvider provider, String entityName) {
IEntity entity = provider.getEntityNamed(entityName);
assertNotNull("The entity " + entityName + " could not be found", entity);
return entity;
}
use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.
the class EclipseLinkJPQLQueryHelperTest method namedQuery.
@Override
protected IQuery namedQuery(String entityName, String queryName) throws Exception {
IEntity entity = entity(entityName);
IQuery namedQuery = entity.getNamedQuery(queryName);
assertNotNull("The named query " + queryName + " could not be found on " + entityName, namedQuery);
return namedQuery;
}
use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.
the class EclipseLinkJPQLQueryHelperTest method entity.
protected IEntity entity(String entityName) throws Exception {
IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
assertNotNull("The entity " + entityName + " could not be found", entity);
return entity;
}
use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.
the class EclipseLinkJPQLQueryHelperTest2_4 method entity.
protected IEntity entity(String entityName) throws Exception {
IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
assertNotNull("The entity " + entityName + " could not be found", entity);
return entity;
}
use of org.eclipse.persistence.jpa.jpql.tools.spi.IEntity in project eclipselink by eclipse-ee4j.
the class EclipseLinkJPQLQueryHelperTest2_5 method entity.
protected IEntity entity(String entityName) throws Exception {
IEntity entity = getPersistenceUnit().getEntityNamed(entityName);
assertNotNull("The entity " + entityName + " could not be found", entity);
return entity;
}
Aggregations