-
Notifications
You must be signed in to change notification settings - Fork 212
isEqualTo run before filter ? #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
and mapper.select(dsl -> dsl
.where(id, isEqualTo(()->dto.getEmployeeId()).filter(Objects.nonNull(dot)))); |
In your first example, the exception thrown is probably mapper.select(dsl -> dsl.configureStatement(c -> c.setNonRenderingWhereClauseAllowed(true))
.where(id, isEqualTo(employeeId).filter(Objects::nonNull))); |
In your second example, I assume you get a NullPointerException if mapper.select(dsl -> dsl.configureStatement(c -> c.setNonRenderingWhereClauseAllowed(true))
.where(id, isEqualTo(dto).filter(Objects::nonNull).map(MyDTO::getEmployeeId).filter(Objects::nonNull))); |
oh tanks |
hi,
just like this issue,but now version code is gone |
You can do this: isInWhenPresent(dto == null ? null : dto.list) |
lol |
employeeId = null
Does not run when employee is null. but throw exception, Is there any other way.
The text was updated successfully, but these errors were encountered: