Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-851

Incompatibility with Groovy traits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for Feedback
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.11.4 (Gosling SR4), 1.12.1 (Hopper SR1)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Spring Data's mappings has trouble with properties implemented via Groovy traits. Trying to map these properties results in exceptions like this:

      org.springframework.data.mapping.context.InvalidPersistentPropertyPath: No property age found on example.springdata.groovytraitsbug.Customer!

      See the reference URL for a test case that demonstrates the issue.

      It's an unfortunate issue, because Groovy traits are super useful for cross-cutting concerns, e.g. domain-specific access control metadata.

        Attachments

          Activity

            People

            Assignee:
            schauder Jens Schauder
            Reporter:
            douglyuckling Doug Paul
            Last updater:
            Jens Schauder
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: