这是我想要做的java代码片段。
SQLQuery query1 = new SQLQuery(conn, configuration);
SQLSubQuery sql = new SQLSubQuery().from(user).where(user.firstName.eq("Pradeep"));
List<List<String>> tupleList = query1.from(user).list(sql.list(user.firstName));
最后一行是空指针异常。
with cause = null
java.lang.NullPointerException: null
at com.mysema.query.sql.JavaTypeMapping.findType(JavaTypeMapping.java:129) ~[querydsl-sql-3.6.1.jar:na]
at com.mysema.query.sql.JavaTypeMapping.getType(JavaTypeMapping.java:108) ~[querydsl-sql-3.6.1.jar:na]
at com.mysema.query.sql.Configuration.getType(Configuration.java:316) ~[querydsl-sql-3.6.1.jar:na]
at com.mysema.query.sql.Configuration.get(Configuration.java:208) ~[querydsl-sql-3.6.1.jar:na]
at com.mysema.query.sql.AbstractSQLQuery.get(AbstractSQLQuery.java:111) ~[querydsl-sql-3.6.1.jar:na]
at com.mysema.query.sql.AbstractSQLQuery.list(AbstractSQLQuery.java:347) ~[querydsl-sql-3.6.1.jar:na]