com.mysema.codegen.CodegenException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • com.mysema.codegen.CodegenException: Compilation of public class Q_1462119976_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<querydsl.model.Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (querydsl.model.Cat cat1 : cat1_) { for (querydsl.model.Cat cat1 : com.querydsl.collections.CollQueryFunctions.leftJoin(com.querydsl.collections.CollQueryFunctions.<java.util.List>get(category1, "cats"))) { rv.add(new Object[]{cat1,cat1}); } } return rv; } } failed. /Q_01009724352_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (querydsl.model.Cat cat1 : com.querydsl.collections.CollQueryFunctions.leftJoin(com.querydsl.collections.CollQueryFunctions.<java.util.List>get(category1, "cats"))) { ^ ... at com.mysema.codegen.JDKEvaluatorFactory.compile(JDKEvaluatorFactory.java:74) at com.mysema.codegen.AbstractEvaluatorFactory.createEvaluator(AbstractEvaluatorFactory.java:128) at com.querydsl.collections.DefaultEvaluatorFactory.createEvaluator(DefaultEvaluatorFactory.java:262) at com.querydsl.collections.DefaultQueryEngine.evaluateMultipleSources(DefaultQueryEngine.java:109) at com.querydsl.collections.DefaultQueryEngine.count(DefaultQueryEngine.java:57) at com.querydsl.collections.AbstractCollQuery.fetchResults(AbstractCollQuery.java:189) at querydsl.Main.LeftJoin(Main.java:94)
No Bugmate found.