getEntityType

fun getEntityType(metamodel: Metamodel, entityName: String): EntityType<*>?(source)

Retrieves the entity type with the given name from the provided metamodel.

Return

The EntityType representing the entity type with the given name, or null if no entity type with the given name is found.

Parameters

metamodel

The metamodel containing the entities.

entityName

The name of the entity type to retrieve.