querydsl

Lucene's nested query evaluation regarding negation

Hi, I am adding Apache Lucene support to Querydsl (which offers type-safe queries for Java) and I am having problems understanding how Lucene evaluates queries especially regarding negation in nested queries. For instance the following two queries in my opinion are semantically the same, but only the first one returns results. +year:1...

ExceptionInInitializerError when querying a collection using querydsl

When executing the following code I get an exception when executing the query/projection. Does anybody know what I am doing incorrectly? All help greatly appreciated.... Data lt = alias(Data.class,"Data"); for(String location: from ($(lt),Arrays.asList(allData.toArray())).list($(lt.getData()))){ System.out.println(location); } T...

SQL DSL for Scala

I am struggling to create a SQL DSL for Scala. The DSL is an extension to Querydsl, which is a popular Query abstraction layer for Java. I am struggling now with really simple expressions like the following user.firstName == "Bob" || user.firstName == "Ann" As Querydsl supports already an expression model which can be used here I dec...