Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
QMatch qMatch = QMatch.match; QTeam qTeam = QTeam.team; query.from(qMatch).where(builder) .groupBy(queryStringPath).list( Projections.constructor(TeamResultDto.class, new JPASubQuery().from(qTeam).where(qTeam.name.eq(qMatch.homeTeam.name)).count(), queryStringPath, qMatch.homeTeam.name.count()) );
I get :
java.lang.IllegalArgumentException: Undeclared path 'match'. Add this path as a source to the query to be able to reference it.
Referencing from where/from part of query is ok, but when i try to use qMatch in my projection it doesn't work.