You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Guillaume Chauvet (JIRA)" <ji...@apache.org> on 2013/05/23 15:25:21 UTC

[jira] [Closed] (OPENJPA-2385) PrePersist/PreUpdate not invoked

     [ https://issues.apache.org/jira/browse/OPENJPA-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Chauvet closed OPENJPA-2385.
--------------------------------------

    Resolution: Not A Problem

I found my error for this unitary test : just remove "final" to the @PrePersist method....
                
> PrePersist/PreUpdate not invoked
> --------------------------------
>
>                 Key: OPENJPA-2385
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2385
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3
>            Reporter: Guillaume Chauvet
>         Attachments: OPENJPA-2385.zip
>
>
> In the OpenJPA user manual, section 3.1 " Callback Methods" we read this :
> PrePersist: Methods marked with this annotation will be invoked before an object is persisted. This could be used for assigning primary key values to persistent objects. This is equivalent to the XML element tag pre-persist.
> But this is not the behavior obtained.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira