findAttributeByPath

fun findAttributeByPath(entityType: EntityType<*>, path: String): Attribute<*, *>(source)

Finds an attribute by the given path in the provided entity type.

Return

the found attribute or throws an exception if not found

Parameters

entityType

the entity type to search for the attribute

path

the path of the attribute separated by dots

Throws

if no attribute is found for the given path