getField - corda

corda / net.corda.core.node.services.vault / getField

# 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

### Exceptions

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