getEntityFields

fun getEntityFields(metamodel: Metamodel, entityClass: Class<*>): Set<String>(source)

Retrieves the set of field names for a given entity class from the metamodel.

Return

a set of field names for the entity class

Parameters

metamodel

the metamodel instance to use for entity analysis

entityClass

the class representing the entity

Throws

if the entity class is not found in the classpath