Skip to content
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

Boolean builder in case when #1027

Closed
fmamic opened this issue Nov 2, 2014 · 3 comments
Closed

Boolean builder in case when #1027

fmamic opened this issue Nov 2, 2014 · 3 comments
Milestone

Comments

@fmamic
Copy link

@fmamic fmamic commented Nov 2, 2014

Hello,
Boolean builder cannot be inserted in when part of CaseBuilder, only Predicate.

BooleanBuilder builder = new BooleanBuilder();
builder.and(qMatch.homeTeam.name.in(teams));
NumberExpression cases = new CaseBuilder().when(builder).then(Expressions.numberTemplate(Long.class,"1")).otherwise(Expressions.numberTemplate(Long.class, "0"));

This gives compile error.

@timowest
Copy link
Member

@timowest timowest commented Nov 2, 2014

@fmamic Could you try the related pull request?

@fmamic
Copy link
Author

@fmamic fmamic commented Nov 3, 2014

It works fine now, thank you :)

@timowest
Copy link
Member

@timowest timowest commented Nov 30, 2014

Released in 3.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.