OpenJPA
  1. OpenJPA
  2. OPENJPA-1417

Supplying CodeFormat to ReverseCustomizer prevents usage of annotations

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: tooling
    • Labels:
      None
    • Environment:
      OpenJPA 1.2.1, Windows XP

      Description

      There is no way to use a custom CodeFormat if you want the ReverseMapping tool to write out annotations for you.

      This is because CodeGenerator.java either uses your supplied "class code" (the template you supply) or figures out its own. If you supply one, no call is ever made to writeAnnotations(). It is only when you don't supply your own "class code" that the generator calls writeAnnotations().

      The reason I'm encountering this is because of another bug, whose number I'll put in here once I create it.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Laird Nelson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development