Class SearchPathUtil

java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.SearchPathUtil

public final class SearchPathUtil extends Object
Utility for converting between dotted paths and DTO properties.
  • Method Details

    • toProperty

      public static String toProperty(String path)
      Converts a dotted path (e.g., "parent.child") to a DTO property name (e.g., "parentChild").
      Parameters:
      path - the dotted path to convert
      Returns:
      the corresponding DTO property name
    • buildPath

      public static String buildPath(String path)
      Builds a CriteriaBuilder path from a dotted property path.
      Parameters:
      path - the dotted path
      Returns:
      the builder path expression