File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : scala
22script :
3- - sbt -J-Xmx2048M clean test
3+ - sbt -J-Xmx4096M clean test doc
44scala :
55 - 2.11.7
66jdk :
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ import longevity.subdomain.Root
66// TODO this should be a persistence exception
77
88/** thrown on attempt to use an unpersisted assoc as a persisted assoc. for instance,
9- * when calling [[longevity.persistence.Repo. retrieve(Assoc) ]], or attempting to persist with
10- * [[longevity.persistence.Repo.create ]]
9+ * when calling [[longevity.persistence.Repo repository method ]] ` retrieve(Assoc[R])`,
10+ * or attempting to persist with [[longevity.persistence.Repo.create ]]
1111 */
1212class AssocIsUnpersistedException (assoc : Assoc [_ <: Root ])
1313extends AssocException (assoc, " cannot retrieve a persisted aggregate from an unpersisted assoc" )
Original file line number Diff line number Diff line change @@ -18,17 +18,20 @@ trait Repo[R <: Root] {
1818 def retrieve (assoc : Assoc [R ]): Future [Option [PState [R ]]]
1919
2020 /** retrieves a non-optional persisted assoc
21- * @throws longevity.exceptions.subdomain.AssocIsUnpersistedException whenever the assoc is not persisted
22- * @ throws NoSuchElementException whenever the assoc does not refer to an aggregate in the repository.
21+ *
22+ * throws NoSuchElementException whenever the assoc does not refer to an aggregate in the repository.
2323 * most likely it was deleted.
24+ *
25+ * @throws longevity.exceptions.subdomain.AssocIsUnpersistedException whenever the assoc is not persisted
2426 */
2527 def retrieveOne (assoc : Assoc [R ]): Future [PState [R ]]
2628
2729 /** retrieves an optional aggregate by a key value */
2830 def retrieve (keyVal : KeyVal [R ]): Future [Option [PState [R ]]]
2931
3032 /** retrieves a non-optional aggregate by a key value
31- * @throws NoSuchElementException whenever the key value does not refer to an aggregate in the repository
33+ *
34+ * throws NoSuchElementException whenever the key value does not refer to an aggregate in the repository
3235 */
3336 def retrieveOne (keyVal : KeyVal [R ]): Future [PState [R ]]
3437
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ object Assoc {
2121 *
2222 * there are basically two kinds of associations that you have to understand. the main kind is a
2323 * "persisted assoc", which means an association to an aggregate that has already been persisted.
24- * the associated aggregate can be retrieved using [[longevity.persistence.Repo.retrieve(Assoc) ]].
24+ * the associated aggregate can be retrieved using [[longevity.persistence.Repo repository method ]]
25+ * `retrieve(Assoc[R])`.
2526 *
2627 * the second kind of association is an "unpersisted assoc", which you can use when creating multiple
2728 * aggregates at once with [[longevity.persistence.RepoPool.createMany ]]. unpersisted assocs are
You can’t perform that action at this time.
0 commit comments