queryDSL any().concat
queryDSL any().concat
请帮忙,
如何从 oneToMany 关系中连接属性?
order.users.any().firstName
.concat(order.users.any().lastName)
.containsIgnoreCase(request.fullName)
这给出了奇怪的异常:
org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "user4_"
在进行双向映射和使用 JPASubQuery 时可以正常工作。
BooleanBuilder builder = new BooleanBuilder();
...
JPASubQuery from = new JPASubQuery()
.from(QOrderUnit.orderUnit)
.where(QOrderUnit.orderUnit.orderBatch.eq(orderBatch).
and(QOrderUnit.orderUnit.firstName.concat(" ").concat(QOrderUnit.orderUnit.lastName)
.containsIgnoreCase(orderRequest.getOwners())));
builder.and(from.exists());
请帮忙,
如何从 oneToMany 关系中连接属性?
order.users.any().firstName
.concat(order.users.any().lastName)
.containsIgnoreCase(request.fullName)
这给出了奇怪的异常:
org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "user4_"
在进行双向映射和使用 JPASubQuery 时可以正常工作。
BooleanBuilder builder = new BooleanBuilder();
...
JPASubQuery from = new JPASubQuery()
.from(QOrderUnit.orderUnit)
.where(QOrderUnit.orderUnit.orderBatch.eq(orderBatch).
and(QOrderUnit.orderUnit.firstName.concat(" ").concat(QOrderUnit.orderUnit.lastName)
.containsIgnoreCase(orderRequest.getOwners())));
builder.and(from.exists());