Well it seems that you are using a projection over a CreditCenter object
@Query("SELECT CC.id, CC.loanId, CC.clientId FROM CreditCenter CC")
My first thought: Why aren't you using something like this.
@Query("SELECT CC FROM CreditCenter CC")
which will return a list of objects, however, probably you do not want to return all fields, so my second tip is using this query.
@Query("SELECT new package.to.CreditCenter(CC.id, CC.loanId, CC.clientId) FROM CreditCenter CC")
Creditcenter, . JPQL jpa repos, .
public class CreditCenter {
public CreditCenter (int id, int loadid, int clientid){...}
}