Interface StringToEntityPropertyMapConverter


public interface StringToEntityPropertyMapConverter
Converts string value to a map that contains property name and property value. List of properties to search is used to find properties on a managed type, conversion is attempted to property type and if conversion succeeds property is added to resulting map.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(String value, List<String> propertyToSearchList, jakarta.persistence.metamodel.ManagedType<?> managedType, SearchPropertyConfiguration searchPropertyConfiguration)
    Returns a map containing property name and property value.
  • Method Details

    • convert

      Map<String,Object> convert(String value, List<String> propertyToSearchList, jakarta.persistence.metamodel.ManagedType<?> managedType, SearchPropertyConfiguration searchPropertyConfiguration)
      Returns a map containing property name and property value. Resolved from propertyToSearchList found on ManagedType that can be converted from passed in string.
      Parameters:
      value - value to convert
      propertyToSearchList - list of properties to convert to
      managedType - entity managed type
      searchPropertyConfiguration - search property configuration
      Returns:
      map with all properties for which conversion succeeded