trait
Assoc[R <: Root] extends AnyRef
Abstract Value Members
-
abstract
val
associateeTypeKey: TypeKey[R]
-
abstract
def
isPersisted: Boolean
-
abstract
def
retrieve: Future[PState[R]]
-
abstract
def
unpersisted: R
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Assoc[R], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (Assoc[R]) ⇒ Boolean, msg: ⇒ Any): Assoc[R]
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Assoc[R]
-
def
ensuring(cond: Boolean): Assoc[R]
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Assoc[R], B)
Inherited by implicit conversion any2stringadd from
Assoc[R] to any2stringadd[Assoc[R]]
Inherited by implicit conversion StringFormat from
Assoc[R] to StringFormat[Assoc[R]]
Inherited by implicit conversion Ensuring from
Assoc[R] to Ensuring[Assoc[R]]
Inherited by implicit conversion ArrowAssoc from
Assoc[R] to ArrowAssoc[Assoc[R]]
a unidirectional association, or "assoc", between an entity and an aggregate root. the left side of the association - that is, the holder of the
Assoc
instance - is known as the associator. the right side of the association is the associatee.there are basically two kinds of associations that you have to understand. an unpersisted assoc is one in which the associatee has not been persisted. in this case, an attempt to persist the associator will cascade persist the associatee.
a persisted assoc is one in which the associatee has already been persisted. it may or may not have already been loaded in to program memory, and calling
retrieve
orpersisted
orget
may well trigger a database lookup.