openjpa-users mailing list archives

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


On Tue, May 29, 2012 at 10:09 AM, José Luis Cetina <>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*
> -------------------------------------------------------------------

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