DATAJPA-39 - Made methods in QueryDslJpaRepository protected to allow subclassing.

This commit is contained in:
Oliver Gierke
2011-03-30 12:13:23 +02:00
parent 010f844996
commit 483baa4310

View File

@@ -160,7 +160,7 @@ public class QueryDslJpaRepository<T, ID extends Serializable> extends
* @param predicate
* @return
*/
private JPQLQuery createQuery(Predicate... predicate) {
protected JPQLQuery createQuery(Predicate... predicate) {
return new JPAQuery(em).from(path).where(predicate);
}
@@ -173,7 +173,7 @@ public class QueryDslJpaRepository<T, ID extends Serializable> extends
* @param pageable
* @return
*/
private JPQLQuery applyPagination(JPQLQuery query, Pageable pageable) {
protected JPQLQuery applyPagination(JPQLQuery query, Pageable pageable) {
if (pageable == null) {
return query;
@@ -193,7 +193,7 @@ public class QueryDslJpaRepository<T, ID extends Serializable> extends
* @param sort
* @return
*/
private JPQLQuery applySorting(JPQLQuery query, Sort sort) {
protected JPQLQuery applySorting(JPQLQuery query, Sort sort) {
if (sort == null) {
return query;
@@ -215,7 +215,7 @@ public class QueryDslJpaRepository<T, ID extends Serializable> extends
* @return
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private OrderSpecifier<?> toOrder(Order order) {
protected OrderSpecifier<?> toOrder(Order order) {
Expression<Object> property = builder.get(order.getProperty());