hasOneRelationship

Delegate for relationships. Let you specify the name of the relationship to delegate to.

Parameters

name

The name of the relationship.

R

The type of the resource.

RL

The type of the relationship.


fun <R : Resource, RL : Resource> R.hasOneRelationship(name: String, defaultValue: RL): MapDelegate<R, RL>(source)

Delegate for relationships. Let you specify the name of the relationship to delegate to.

Parameters

name

The name of the relationship.

defaultValue

The default value of the relationship.

R

The type of the resource.

RL

The type of the relationship.