Hi, Step 4 under the Reverse Mapping Tool section [1] states this: "Examine the generated class, metadata, and mapping information, and modify it as necessary. Remember that the reverse mapping tool only provides a starting point, and you are free to make whatever modifications you like to the code it generates. "
Reverse Mapping was never meant to be an end-all code generator. There will be several areas that will require tweaking to ensure your Entities properly represent your database schema, especially in the area of relationships. Given all of that, it would seem that the insertion of the @Temporal annotation would be a relatively easy code generation feature, if you are interested in participating in the community [2]. You could start by creating a JIRA feature [3] and attaching a junit testcase to demonstrate the issue. The next step would be to experiment with the code and come up with a patch as a proposed solution. Good luck! [1] http://openjpa.apache.org/builds/latest/docs/docbook/manual.html#ref_guide_pc_reverse [2] http://openjpa.apache.org/get-involved.html [3] http://openjpa.apache.org/found-a-bug.html On Tue, May 29, 2012 at 10:09 AM, José Luis Cetina <[email protected]>wrote: > Why when i use the ReverseMappingTool from JPA the @Temporal annotation ( > for Date columns) never add to my entity, i have to add the annotation > manually?? > > -- > ------------------------------------------------------------------- > *SCJA. José Luis Cetina* > ------------------------------------------------------------------- >
