|
Interestingly in 4.6.5. the JPA spec says that conditional expressions are composed of ..., boolean literals, boolean input parameters ... but in the next line they don't allow these two in the BNF. Although it would be nice, you can easily work around that by using a comparison expression e.g. criteria.where(builder.eq(builder.literal(true), builder.literal(true));
|