code: private String getColumnName(EntityMetadata metadata, EntityType entityType, String property)
      {
          String columnName = null;
  
          if (property.indexOf(".") > 0)
          {
              property = property.substring((kunderaQuery.getEntityAlias() + ".").length());
          }
          try
          {
              columnName = ((AbstractAttribute) entityType.getAttribute(property)).getJPAColumnName();
          }
          catch (IllegalArgumentException iaex)
          {
              log.warn("No column found by this name : " + property + " checking for embeddedfield");
          }
          // where condition may be for search within embedded object
          if (columnName == null && property.indexOf(".") > 0)
          {
              String enclosingEmbeddedField = MetadataUtils.getEnclosingEmbeddedFieldName(metadata, property, true,
                      kunderaMetadata);
              if (enclosingEmbeddedField != null)
              {
                  columnName = property;
              }
          }
  
          if (columnName == null)
          {
              log.error("No column found by this name : " + property);
              throw new JPQLParseException("No column found by this name : " + property + ". Check your query.");
          }
          return columnName;
      }
docs: Gets the column name.
  
  @param metadata
  the metadata
  @param entityType
  the entity type
  @param property
  the property
  @return the column name