tg icon indicating copy to clipboard operation
tg copied to clipboard

EQL and Selection Criteria: support for meta-models

Open 01es opened this issue 3 years ago • 0 comments

Description

  • [x] 1. .critCondition() API to support meta-models in order to avoid conversions to String using .toPath, like in the example below:
.critCondition(InventoryBin_.inventory().inventoryPart().key().toPath(), BatchInventoryTransfer_.partCrit().toPath())
  • [ ] 2. Interaction with EQL parameters needs to support meta-models. Currently params use String as keys. But also derived names for @CritOnly properties manipulate with String values. It would be great if something like the code below could be expressed in terms of meta-models:
final EnhancedCentreEntityQueryCriteria<?, ?> params = decompContext.selectionCrit();
final boolean showDuplicates = params.get(critName(RePmRoutineCalendar.class, "showDuplicates"));

Expected outcome

Improved support for meta-models in TG API around EQL and selection criteria.

01es avatar Nov 03 '22 00:11 01es