Hi I'm using RDFBean with QueryDSL.
When I generate QClasses, the generator instantiate the field "id" as "com.mysema.query.types.path.SimplePath".
Now the problem is that I want to query about all entities whose id starts with "xxx".
So I've created a query like that:
List<Concept> titles = session.from(qv_concept).where(new StringPath(qv_concept.id.toString()).startsWith("xxx")).list(qv_concept);
My intention was to create a StringPath from a SimplePath, so that I could use all useful String methods, like startsWith in the example.
..but when i run my code it throw me an exception:
Exception in thread "main" java.lang.IllegalArgumentException: Undeclared path '
concept.id'. Add this path as a source to the query to be able to reference it.
How can I solve the problem?
Thanks in advance