Blazebit / blaze-persistence

Rich Criteria API for JPA providers
https://persistence.blazebit.com
Apache License 2.0
728 stars 85 forks source link

Make BP custom functions available through BlazeCriteriaBuilder #959

Open jwgmeligmeyling opened 4 years ago

jwgmeligmeyling commented 4 years ago

The CriteriaBuilder has some utility methods to create function expressions. BlazeCriteriaBuilder could extend this with the custom functions Blaze Persistence provides. My personal candidate list:

Candidates that are perhaps too specific / type bound and are better suited for a dedicated utility API

I believe LEAST, GREATEST , CAST are already provided. Not sure what else makes sense to include.

Description

Expected behavior

Actual behavior

Steps to reproduce

Environment

Version:
JPA-Provider:
DBMS:
Application Server:

beikov commented 2 years ago

https://github.com/Blazebit/blaze-persistence/pull/1383 will add support for most of these functions. The only ones left now are: