Skip to content

Complex filtering possibilities #428

@strailov

Description

@strailov

Hello,
I was playing around with springfilter with jpa and I was wondering is it possible to filter some more complex cases.

More specifically I have an entity which have a relation to attributes table with String key value pairs.

So for example If I have couple of attributes for a particular entity
Map<String, String> attributes;
Currently I see It is possible to filter for attribute.key : value
Is it possible somehow to filter for attribute.<valueOfKey> : <valueInMap> ?
So for example if I have
{ "foo" : "bar" } top somehow filter for attributes.foo : 'bar'
Currently Criteria builder throws an exception
Criteria expression is of primitive type and cannot be further navigated.
Which of course seems reasonable but I was just wondering is there a way ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions