Boolean builder in case when #1027

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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 2, 2014

Member

@fmamic Could you try the related pull request?

Member

timowest commented Nov 2, 2014

@fmamic Could you try the related pull request?

@fmamic

This comment has been minimized.

Show comment
Hide comment
@fmamic

fmamic Nov 3, 2014

It works fine now, thank you :)

fmamic commented Nov 3, 2014

It works fine now, thank you :)

@Shredder121 Shredder121 closed this in #1028 Nov 8, 2014

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 30, 2014

Member

Released in 3.6.0

Member

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