}
}
protected <T> TypedQuery<T> createNamedJpqlQuery(NamedQueryDefinition namedQueryDefinition, Class<T> resultType) {
SessionImplementor session = (SessionImplementor) getDelegate();
final org.hibernate.Query query = session.createQuery( namedQueryDefinition );
if ( resultType != null ) {
resultClassChecking( resultType, query );
}
return wrapAsJpaQuery( namedQueryDefinition, query );