Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1699

JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3
    • Component/s: tapestry-jpa
    • Labels:
      None

      Description

      There seems to be a problem with Tapestry-jpa value encoder.The problem is that propertyAdapter of JpaValueEncoder is null.In order to fix it, i had to change idPropertyName = idAttribute.getJavaMember().getName() to idPropertyName = idAttribute.getName();. I dont know if it matters but in my entities annotations are added on the methods and not on the properties.

        Attachments

          Activity

            People

            • Assignee:
              igor.drobiazko Igor Drobiazko
              Reporter:
              zenios Dimitris Zenios
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: