Thymeleaf tuple fields querydsl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Thymeleaf tuple fields querydsl

fermono
Hi!

I'm relatively new and I created a query wich contains a leftjoin for two entities(qe and qc), using querydsl.
The query works well while printing in console, but when I try to add the query to an object and then use it with thymeleaf, I get the error "Exception evaluating SpringEL expression: "eq.ser", "Property or field 'ser' cannot be found on object of type 'java.lang.String' - maybe not public?"

The query is the next: "q.select(qe.ser.as("ser"),qc.desc.as("desc"),qc.mar.as("mar"),qc.mod.as("mod"))
                                .from(qe).leftJoin(qe.cateid,qc)
                                .where(qe.sald.eq(sald))
                                .orderBy(qe.eqd.asc()).fetch();"

Could anyone help?

Thanks in advance!