trait
Assoc[P <: Persistent] extends PRef[P]
Abstract Value Members
-
abstract
def
isPersisted: Boolean
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Assoc[P], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (Assoc[P]) ⇒ Boolean, msg: ⇒ Any): Assoc[P]
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Assoc[P]
-
def
ensuring(cond: Boolean): Assoc[P]
-
-
-
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[P], B)
Inherited by implicit conversion any2stringadd from
Assoc[P] to any2stringadd[Assoc[P]]
Inherited by implicit conversion StringFormat from
Assoc[P] to StringFormat[Assoc[P]]
Inherited by implicit conversion Ensuring from
Assoc[P] to Ensuring[Assoc[P]]
Inherited by implicit conversion ArrowAssoc from
Assoc[P] to ArrowAssoc[Assoc[P]]
a unidirectional association, or "assoc", between an entity and a persistent entity. 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. the main kind is a "persisted assoc", which means an association to an entity that has already been persisted. the associated entity can be retrieved using repository method
retrieve(Assoc[R])
.the second kind of association is an "unpersisted assoc", which you can use when creating multiple persistent entities at once with longevity.persistence.RepoPool.createMany. unpersisted assocs are intended to support this single use-case. in general we work with persisted assocs.