[
https://issues.apache.org/jira/browse/OPENJPA-2241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423079#comment-13423079
]
Kevin Sutter commented on OPENJPA-2241:
---------------------------------------
Have you enabled OpenJPA Trace to see if it sheds any light on where the
deletions are coming from? Are you running with the
openjpa.SynchronizeMappings property in your persistence.xml? Or, are you
using any other utility libraries that might be affecting your tables?
Although it's definitely possible, I find it hard to believe that OpenJPA is
intermittently deleting the contents of a join table. Since it's intermittent,
it might be difficult to reproduce. But, a junit testcase would be most
appreciated. Thanks.
> Records from a JoinTable being deleted without any related user action
> ----------------------------------------------------------------------
>
> Key: OPENJPA-2241
> URL: https://issues.apache.org/jira/browse/OPENJPA-2241
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 2.1.0
> Environment: Red Hat Enterprise Linux 5.8 64 Bit
> Apache OpenJPA 2.1.0
> Spring 3.0.5
> JDK 1.6
> Apache Tomcat 7.0.23
> DB2 9.7 FP 5
> J2EE web application
> Reporter: Santosh Shanmukh
> Priority: Critical
>
> The web application uses a JoinTable to store user roles. It has a screen to
> assign/remove user roles.
> At unpredictable times when the user is using the tool intermittently logging
> out and logging in, all the role records from the JoinTable get deleted on
> their own.
> We have enable SQL trace to see the sequence in which the deletion happens,
> and are certain that this user role deletion is not user initiated.
> Please let me know how this issue can be resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira