I have following problem: I am using Spring + Hibernate and am currently trying to select an id + amount of its id and return a list with each id and its corresponding amount. Now the problem is, that apperently the converter has a problem as I get following exception :
ConverterNotFoundException: No converter found capable of converting from type [java.lang.Long] to type [...entity.E_Amount]] with root cause
E_Amount creates Obejects with an id and an amount. And My Query:
@Query("select t.e.id, count(t.id) from...")
returns a perfectly fine result of a long and an integer e.g. {9,101}
I am simply not completely sure how to start tackling this converting problem. Any ideas would be greatly appreciated!