rsql-jpa-specification icon indicating copy to clipboard operation
rsql-jpa-specification copied to clipboard

Apply custom function for field entity

Open dima-bzz opened this issue 7 months ago • 4 comments

Is it possible to apply a custom function to a parameter value? For example, remove all special characters.

filter=number=like='123????'

And when searching there will be number like '%123%'. It would be convenient to register a custom function for an entity field and have this function applied when forming a request.

addEntityAttributeParser(Class<T> entityClass, String fieldEntity, Function<?, ?> function) 

dima-bzz avatar Apr 01 '25 08:04 dima-bzz