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
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 partition key
the properties that determine the partition
constructs a partition key for this persistent type
constructs a partition 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 partition key for this persistent type.
constructs a partition 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 partition key for this persistent type
the optional partition 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
the [Prop properties] for this persistent type
contains implicit imports to make the query DSL work
contains implicit imports to make the query DSL work
the base type for a family of persistent types. mix this in to your persistent type when it represents an abstract persistent type with concrete subtypes.