Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2.1
-
None
-
None
-
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.
Attachments
Issue Links
- is related to
-
OPENJPA-1418 Imports produced by the ReverseMappingTool do not include javax.lang.annotation
- Closed
- relates to
-
OPENJPA-1492 Change access on ReverseMappingTool#getAnnotationsForMeta(Object) from private to public
- Closed