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