getInverseAttribute

fun getInverseAttribute(sourceEntityType: EntityType<*>, sourceAttribute: Attribute<*, *>, targetEntityType: EntityType<*>): Attribute<*, *>(source)

Returns the inverse attribute for a given source attribute in a target entity.

Return

The inverse Attribute in the target entity.

Parameters

sourceEntityType

The EntityType of the source entity.

sourceAttribute

The source Attribute.

targetEntityType

The EntityType of the target entity.

Throws

if the inverse attribute cannot be found.