tg
tg copied to clipboard
EQL and Selection Criteria: support for meta-models
Description
- [x] 1.
.critCondition()API to support meta-models in order to avoid conversions toStringusing.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
Stringas keys. But also derived names for@CritOnlyproperties manipulate withStringvalues. 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.