getField

fun getField(fieldName: String, entityClass: Class<*>): FieldInfo

Returns a FieldInfo for field with name fieldName in entityClass.

Parameters

fieldName

name of the field

entityClass

JPA entity class containing the field

Throws

if no field with name fieldName is found in the class hierarchy of entityClass