You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Laird Nelson (JIRA)" <ji...@apache.org> on 2009/12/07 23:04:18 UTC

[jira] Created: (OPENJPA-1417) Supplying CodeFormat to ReverseCustomizer prevents usage of annotations

Supplying CodeFormat to ReverseCustomizer prevents usage of annotations
-----------------------------------------------------------------------

                 Key: OPENJPA-1417
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1417
             Project: OpenJPA
          Issue Type: Bug
          Components: tooling
    Affects Versions: 1.2.1
         Environment: OpenJPA 1.2.1, Windows XP
            Reporter: Laird Nelson


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.