openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <kwsut...@gmail.com>
Subject Re: @Temporal
Date Tue, 29 May 2012 18:29:33 GMT
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 <maxtorzito@gmail.com>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*
> -------------------------------------------------------------------
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message