/** * Apply a "greater than or equal" constraint to another property */ public AuditCriterion geProperty(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" ).geProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as prop and therefore we have to use * the same alias. */ return geProperty( alias, otherPropertyName ); }
/** * Apply a "greater than or equal" constraint to another property */ public AuditCriterion geProperty(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" ).geProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as prop and therefore we have to use * the same alias. */ return geProperty( alias, otherPropertyName ); }