Class QueryModel.PropertyComparisonCriterion

java.lang.Object
io.micronaut.data.model.query.QueryModel.PropertyNameCriterion
io.micronaut.data.model.query.QueryModel.PropertyComparisonCriterion
All Implemented Interfaces:
QueryModel.Criterion
Direct Known Subclasses:
QueryModel.EqualsProperty, QueryModel.GreaterThanEqualsProperty, QueryModel.GreaterThanProperty, QueryModel.LessThanEqualsProperty, QueryModel.LessThanProperty, QueryModel.NotEqualsProperty
Enclosing interface:
QueryModel

public static class QueryModel.PropertyComparisonCriterion extends QueryModel.PropertyNameCriterion
A Criterion that compares to properties.
  • Constructor Details

    • PropertyComparisonCriterion

      protected PropertyComparisonCriterion(String property, String otherProperty)
      Default constructor.
      Parameters:
      property - The property name
      otherProperty - The other property name
  • Method Details

    • getOtherProperty

      public String getOtherProperty()
      Returns:
      The other property