Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cinchapi/runway into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnelson committed Jul 2, 2021
2 parents 4c8e63e + 1954f7f commit 9d04228
Show file tree
Hide file tree
Showing 11 changed files with 2,196 additions and 262 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#### Version 1.9.0 (TBD)
* Added support for multi-field `Unique` value constraints. When applying the `Unique` constraint to a `Record` field, you can now provide a `name` parameter (e.g. `@Unique(name = "identity"))`. If multiple `Unique` annotated fields have the same `name`, Runway will enforce uniqueness among the combination of values for all those fields across all `Records` in the same class. If a `Unique` annotated field is a `Sequence`, Runway will consider uniqueness to be violated if and only if any items in the sequence are shared and all the other fields in the same uniqueness group are also considered shared.
* Added `Realms` to virtually segregate records within the same environment into distinct groups. A `Record` can be dynamically added to or removed from a `realm` (use `Record#addRealm` and `Record#removeRealm` to manage). Runway provides overloaded read methods that accept a `Realms` parameter to specify the realms from which data can be read. If a Record exists in at least one of the specified `Realms`, it will be read.
* By default, all Records exist in ALL realms, so this feature is backwards compatible.
* By default, read methods consider data from ANY realm, so this feature is backwards compatible.

#### Version 1.8.2 (TBD)
* Fixed a bug where the `Required` annotation was not enforced when loading data from the database. If a record was modified outside of Runway such that a required field was nullified, Runway would previously load the record without enforcing the constraint. This caused applications to encounter some unexpected `NullPointerException`s.
Expand Down
Loading

0 comments on commit 9d04228

Please sign in to comment.