/** * Creates the {@link JPQLQuery} instance based on the configured {@link EntityManager}. * * @return */ public AbstractJPAQuery<Object, JPAQuery<Object>> createQuery(EntityPath<?>... paths) { return createQuery().from(paths); }
/** * Returns a fresh {@link JPQLQuery}. * * @param paths must not be {@literal null}. * @return the Querydsl {@link JPQLQuery}. */ protected JPQLQuery<Object> from(EntityPath<?>... paths) { return getRequiredQuerydsl().createQuery(paths); }
private AbstractJPAQuery<?, ?> doCreateQuery(QueryHints hints, @Nullable Predicate... predicate) { AbstractJPAQuery<?, ?> query = querydsl.createQuery(path); if (predicate != null) { query = query.where(predicate); } for (Entry<String, Object> hint : hints) { query.setHint(hint.getKey(), hint.getValue()); } return query; }
private AbstractJPAQuery<?, ?> doCreateQuery(QueryHints hints, @Nullable Predicate... predicate) { AbstractJPAQuery<?, ?> query = querydsl.createQuery(path); if (predicate != null) { query = query.where(predicate); } for (Entry<String, Object> hint : hints) { query.setHint(hint.getKey(), hint.getValue()); } return query; }
/** * Returns a {@link JPQLQuery} for the given {@link EntityPath}. * * @param path must not be {@literal null}. * @return */ protected <T> JPQLQuery<T> from(EntityPath<T> path) { return getRequiredQuerydsl().createQuery(path).select(path); }
/** * Returns a fresh {@link JPQLQuery}. * * @param paths must not be {@literal null}. * @return the Querydsl {@link JPQLQuery}. */ protected JPQLQuery<Object> from(EntityPath<?>... paths) { return querydsl.createQuery(paths); }
/** * Returns a {@link JPQLQuery} for the given {@link EntityPath}. * * @param <T> the type of queryDSL generated entity * @param path must not be {@literal null}. * @return the Querydsl {@link JPQLQuery}. */ protected <T> JPQLQuery<T> from(EntityPath<T> path) { return querydsl.createQuery(path).select(path); }
/** * Creates the {@link JPQLQuery} instance based on the configured {@link EntityManager}. * * @return */ public AbstractJPAQuery<Object, JPAQuery<Object>> createQuery(EntityPath<?>... paths) { return createQuery().from(paths); }
/** * Returns a fresh {@link JPQLQuery}. * * @param paths must not be {@literal null}. * @return the Querydsl {@link JPQLQuery}. */ protected JPQLQuery<Object> from(EntityPath<?>... paths) { return getRequiredQuerydsl().createQuery(paths); }
private AbstractJPAQuery<?, ?> doCreateQuery(QueryHints hints, @Nullable Predicate... predicate) { AbstractJPAQuery<?, ?> query = querydsl.createQuery(path); if (predicate != null) { query = query.where(predicate); } for (Entry<String, Object> hint : hints) { query.setHint(hint.getKey(), hint.getValue()); } return query; }
private AbstractJPAQuery<?, ?> doCreateQuery(QueryHints hints, @Nullable Predicate... predicate) { AbstractJPAQuery<?, ?> query = querydsl.createQuery(path); if (predicate != null) { query = query.where(predicate); } for (Entry<String, Object> hint : hints) { query.setHint(hint.getKey(), hint.getValue()); } return query; }
/** * Returns a {@link JPQLQuery} for the given {@link EntityPath}. * * @param path must not be {@literal null}. * @return */ protected <T> JPQLQuery<T> from(EntityPath<T> path) { return getRequiredQuerydsl().createQuery(path).select(path); }
return querydsl.createQuery(path).where(predicate);