You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be useful for cases when there is complex logic associated with a where clause. A good example is seen in #100 where there is complex logic associated with creating a search and the where clause could be generated many different ways. We should support a usage like this:
QueryExpressionDSL<SelectModel>.QueryExpressionWhereBuilderbuilder = select(person.allColumns())
.from(person)
.where();
if (someCondition) {
builder.and(id, isEqualto(3));
}
if (anotherCondition) {
builder.and(firstName, isNull());
}
SelectStatementProviderselectStatement = builder.build().render(RenderingStrategy.MYBATIS3);
This should render properly regardless of whether all conditions, or none, are satisfied.
The text was updated successfully, but these errors were encountered:
This will be useful for cases when there is complex logic associated with a where clause. A good example is seen in #100 where there is complex logic associated with creating a search and the where clause could be generated many different ways. We should support a usage like this:
This should render properly regardless of whether all conditions, or none, are satisfied.
The text was updated successfully, but these errors were encountered: