Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.1.5 (Lovelace SR5)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When creating a repository interface in Kotlin, using IgnoreCase will fail with the following error message:

      Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Unable to ignore case of java.lang.String types, the property 'label' must reference a String; nested exception is java.lang.IllegalStateException: Unable to ignore case of java.lang.String types, the property 'label' must reference a String

      This seems to be due to the compiled class being a kotlin.String instead of java.lang.String.

      Using Kotlin strings in NodeEntities seems to work fine, so I expected these types of strings being equivalent everywhere.

      Example:

      interface FooRepository {
          fun findAllByLabelIgnoreCase(label: String): Iterable<Foo>
      }
      

      Please get back to me if you need more information or examples!

        Attachments

          Activity

            People

            • Assignee:
              gerrit.meier Gerrit Meier
              Reporter:
              manuelprinz manuelprinz
              Last updater:
              Gerrit Meier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: