refOptions

molecule.DomainStructure.refOptions
trait refOptions[Self] extends Requierable

Attributes

Source
DomainStructure.scala
Graph
Supertypes
trait Requierable
class Object
trait Matchable
class Any
Known subtypes
trait many
object many
trait one
object one

Members list

Value members

Concrete methods

def apply[RefNs](implicit x: DummyImplicit): refOptions[Self]

Apply entity type to reference.

Apply entity type to reference.

Type parameters

RefNs

Ref entity type

Attributes

Source
DomainStructure.scala
def apply[RefNs](description: String): refOptions[Self]

Attributes

Source
DomainStructure.scala
def require(attrs: Requierable*): Self

Attributes

Source
DomainStructure.scala

Concrete fields

lazy val mandatory: Self

Attributes

Source
DomainStructure.scala
lazy val owner: Self

Owner option.

Owner option.

This entity owns the referenced entity/entities.

  • If this entity is deleted, its references are deleted too (and recursively if sub entities have owned entities!)



Specifies that an attribute whose type is :db.type/ref is a component.

Referenced entities become subcomponents of the entity to which the attribute is applied.

When you retract an entity with :db/retractEntity, all subcomponents are also retracted.

When you get the graph of an entity, all its subcomponent entities are fetched recursively.

Attributes

Source
DomainStructure.scala