Add constraint that ensures that a key field is unique in a collection #13

Closed
hisystems opened this Issue Mar 4, 2012 · 0 comments

Projects

None yet

1 participant

@hisystems
Owner

A key field is typically a value that a user can enter and modify. For example, a product code from a products table. This constraint should ensure:

  • if the object is new, that the key value has not already been used in the table / table subset
  • if the value has changed, then the new value does not conflict with an existing value already in the table / table subset.
    This constraint should encapsulate this concept and eliminate the need to repeatedly resolve this problem for different tables and scenarios.
  • if the value has not changed then the constraint passes
@hisystems hisystems was assigned Mar 4, 2012
@hisystems hisystems added a commit that closed this issue Mar 10, 2012
@hisystems Added constraint KeyFieldIsUniqueInCollectionConstraint that ensures …
…that a key field is unique in a collection. Closes #13.
7ff02b6
@hisystems hisystems closed this in 7ff02b6 Mar 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment