one

molecule.base.api.DataModelApi.one
See theone companion object
trait one extends refOptions[one]

Attributes

Companion
object
Source
DataModelApi.scala
Graph
Supertypes
trait refOptions[one]
trait Requierable
class Object
trait Matchable
class Any
Known subtypes
object one.type

Members list

Value members

Inherited methods

def apply[RefNs](description: String): refOptions[Self]

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala
def apply[RefNs](implicit x: DummyImplicit): refOptions[Self]

Apply namespace type to reference.

Apply namespace type to reference.

Type parameters

RefNs

Ref namespace type

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala
def require(attrs: Requierable*): Self

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala

Inherited fields

lazy val mandatory: one

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala
lazy val owner: one

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

Inherited from:
refOptions
Source
DataModelApi.scala