Skip to content

Missing a way to statically reference a sort by an embedded or associated property #1280

@dstepanov

Description

@dstepanov

I have an embedded entity specs and I want to sort by it's property:

Sort.asc( "specs.weight")

This works but I cannot reference it using the metamodel because navigate always returns an expression:

NumericExpression<Train, Double> navigate = _Train.specs.navigate(_TrainSpecs.weight);

Maybe there should be a way to create a path:

_Train.specs.path(_TrainSpecs.weight).asc();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions