Skip to content

Ability to extend ParameterJpqlGenerator without overriding #5179

@godlewski-dm

Description

@godlewski-dm

Currently processParameters method in io.jmix.data.impl.jpql.generator.ParameterJpqlGenerator is hardcoded to process PropertyCondition and JpqlCondition parameters. So when you create a custom io.jmix.core.querycondition.Condition implementation, the only way to add new process logic is to override ParameterJpqlGenerator and mark it @Primary in the app.

It would be better to be able to implement parameters processing in extension beans like io.jmix.data.impl.jpql.generator.ConditionGenerator implementations that allow to implement query and parameter value generation logic for each type of condition.

This might be useful to implement custom condition types in addons.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Next

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions