1

I used Spring JPA Data + queryDSL.

It's great solution. but I have one question now.

if I want to execute this query.

select sum(point) from users where userLevel = 2;

I have know how execute using queryDSL fro this query. But I don't know how execute this query using queryDSL and QueryDslPredicateExecutor.

How I execute this query using QueryDslPredicateExecutor? Is it imposible now? Either, there is another way to execute this query using Spring JPA another interfaces?

1 Answer 1

1

You need to use a Querydsl queries for that in Spring Data. QueryDslPredicateExecutor is the right choice if you want to return instances of the main variable type.

QueryDslRepositorySupport can be used as the superclass if you need full Querydsl power in a Spring Data repository.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.