specialized expression types for easier JPA Criteria#936
specialized expression types for easier JPA Criteria#936gavinking merged 25 commits intojakartaee:mainfrom
Conversation
|
Still need to figure out what to do about |
jwgmeligmeyling
left a comment
There was a problem hiding this comment.
All my review comments from the #522 PR are incorporated in this PR.
beikov
left a comment
There was a problem hiding this comment.
Other than the missing mod function, this looks good to me. Maybe we should add overloads for the various methods where currently Predicate is accepted to also accept BooleanExpression and change return types to return BooleanExpression? Then we can deprecate Predicate.
|
I have tried replacing |
|
I do believe this is ready to go. In the end I did not see any way to really untangle Also I have aligned naming of numeric operations with what we have in Jakarta Data. |
… Criteria querying
- fixed NumberExpression to extend ComparableExpression - fix up typing of methods of ComparableExpression - fix broken overloading of CriteriaBuilder.literal() - try to maintain some sort of distinction b/w Predicate + BooleanExpression - move sorting methods down to ComparableExpression (debatable) - removed unnecessary overloads of Path.get()
because "Number" is not an adjective
unfortunately overloading here just doesn't work
and remove redundant overrides
for consistency with Jakarta Data
for consistency with rest of criteria API also remove constraint that prevents it from representing a Map
…paths irrelevant operations inherited from Path should not crowd the API
Spoke too soon. I have made the following additional changes:
|
|
Now I think this is ready to go. If there are further adjustments to be made, they can be done in separate pull requests. Need to (finally) get this merged so that people can experiment on the implementation side. |
|
Going to pull the trigger on this in 3 ... 2 ... 1 .... |
|
Merged. If anyone has further suggestions, send a PR or open an issue. |
@beikov had already done most of the hard work in #522.
This is a light reworking of that PR.