|Misplaced annotations [message #610514]
||Tue, 15 April 2008 16:45
| Mike Yawn
Registered: July 2009
This only happens when my own code generator is active, not with the |
standard Dali code gen, so the problem is obviously mine. But since I'm
not yet clear on how the mapping is done between editor and JPA details
view, maybe someone can nudge me in the right direction . . .
When I select a 'get' method in the editor, the corresponding mapping
details are shown in the JPA Details view. Most modifications that I
make in the detail view are correctly mapped as annotations and applied
to the editor. However, the @Temporal and @Enumerated annotations
1) The correct annotation is attached to the wrong place -- it
appears on the method preceding the one that should have received the
2) A second annotation is attached in the correct location -- but the
annotation has only the annotation itself, not the value attribute.
For example, I selected the 'getDate' method in the example below, and
made selections in JPA Details to cause Basic, Temporal, and Embedded
annotations to be added. Here is the result:
public String getInstruction();
public void setInstruction(String instruction);
public Date getDate();
public void setDate(Date date);
There shouldn't be any annotations on the setInstruction method, and the
(DATE) and (ORDINAL) attribute values should be attached to the
annotation on the getDate() method.
Any ideas on this? I'm trying to work my way through the inheritance
hierarchy and understand the various classes that implement/extend Model
and JavaResourceNode, as I suspect the answer is in there somewhere.
Powered by FUDForum
. Page generated in 0.01441 seconds