the keys for this persistent type
an empty key set.
an empty key set. this is a convenience method for people using Scala 2.11
who wish to declare an empty key set. you can always do it by hand with
Set.empty
, but you will have to declare the element type of the set
yourself, like so:
import longevity.model.ptype.Key @perstent(keySet = Set.empty[Key[Foo]])
constructs an index for this persistent type based on the supplied set of index props
constructs an index for this persistent type based on the supplied set of index props
the first of the properties that define this index
any remaining properties that define this index
the indexes for this persistent type.
the indexes for this persistent type. defaults to the empty set
constructs a key for this persistent type
constructs a key for this persistent type
the type of the key value
a property for the key
the type key for the persistent type
a series of properties that determines the partitioning used by the underlying database to distribute data across multiple nodes.
a series of properties that determines the partitioning used by the underlying database to distribute data across multiple nodes. used to form a primary key
the properties that determine the partition
constructs a primary key for this persistent type
constructs a primary key for this persistent type
the type of the key value
a property for the primary key
describes the portion of the key value to use to determine
which node in the partition the data belongs to. this must form a prefix of
the keyValProp
constructs a primary key for this persistent type.
constructs a primary key for this persistent type. the full key value is used to determine the partition
the type of the key value
a property for the primary key
if true
, then used a hashed partition (as opposed to a
ranged partition) when possible. defaults to false
.
the optional primary key for this persistent type
constructs a Prop of type A
from the
provided property path.
constructs a Prop of type A
from the
provided property path.
the provided type A
should match the type of the actual member in the
persistent class. type A
should not contain any collections, or terminate
with polymorphic component.
violations will cause an exception to be thrown on
DomainModel construction.
the type of the property
the property path
the [Prop properties] for this persistent type
contains implicit imports to make the query DSL work
a type class for a persistent object
the persistent type