private Optional < String > tryGetAttributeName ( String tableName , String colName ) { String attributeName ; EntityTypeDescription entityTypeDescription = entityTypeRegistry . getEntityTypeDescription ( tableName ) ; if ( entityTypeDescription != null ) { AttributeDescription attrDescription = entityTypeDescription . getAttributeDescriptionMap ( ) . get ( colName ) ; if ( attrDescription != null ) { attributeName = attrDescription . getName ( ) ; } else { attributeName = null ; } } else { attributeName = null ; } return Optional . ofNullable ( attributeName ) ; }
Tries to determine the attribute name for this table column name