/** * Apply a "less than" constraint to another property */ public AuditCriterion ltProperty(String otherPropertyName) { /* * We provide alias as otherAlias rather than null, because this seems the intuitive use case. * E.g. if the user calls AuditEntity.property( "alias", "prop" ).ltProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as prop and therefore we have to use * the same alias. */ return ltProperty( alias, otherPropertyName ); }
/** * Apply a "less than" constraint to another property */ public AuditCriterion ltProperty(String otherPropertyName) { /* * We provide alias as otherAlias rather than null, because this seems the intuitive use case. * E.g. if the user calls AuditEntity.property( "alias", "prop" ).ltProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as prop and therefore we have to use * the same alias. */ return ltProperty( alias, otherPropertyName ); }