getTargetEntityTypeForPluralAttribute

fun getTargetEntityTypeForPluralAttribute(metamodel: Metamodel, attribute: Attribute<*, *>): EntityType<*>(source)

Retrieves the target entity type for a plural attribute.

Return

The target entity type of the attribute.

Parameters

metamodel

The metamodel containing entity type information.

attribute

The attribute for which to retrieve the target entity type.

Throws

if the attribute is not a collection type or if the entity type cannot be determined.