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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.3
    • 5.3
    • tapestry-jpa
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: