Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2780

ReverseMappingTool does not generate @Enumerated annotation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.2, 2.4.3, 3.0.0
    • Fix Version/s: 2.4.4, 3.1.0
    • Component/s: tooling
    • Labels:
      None

      Description

      I use a customizer class that extends the PropertiesReverseCustomizer to set the EnumValueHandler with storeOrdinal set to "false" for all fields with enum types. Due to an error in the AnnotationPersistenceMappingSerializer the reverse mapping does not generate the expected @Enumerated annotation.

      I forked the repository and commited a bug fix, but I am not able to create a pull request because nothing happens if I click on the button "Create pull request". Instead I included a screenshot of the change. You can also find my fork here: https://github.com/trettstadtnlb/openjpa

       

        Attachments

        1. image-2019-03-20-14-41-07-769.png
          44 kB
          Tobias Rettstadt

          Activity

            People

            • Assignee:
              solomax Maxim Solodovnik
              Reporter:
              trettstadtnlb Tobias Rettstadt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: