Issue Details (XML | Word | Printable)

Key: OPENJPA-248
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Kevin Sutter
Reporter: Kevin Sutter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

ForeignKey cascade delete action not working

Created: 31/May/07 07:29 PM   Updated: 31/Jul/07 07:03 PM
Return to search
Component/s: jdbc
Affects Version/s: 0.9.7
Fix Version/s: 1.0.0

Time Tracking:
Not Specified

Resolution Date: 31/May/07 09:26 PM


 Description  « Hide
The code in parseForeignKey is not correct. It is accidentally using the deleteAction setting for both the delete and update action settings. This results in invalid SQL being generated (at least for DB2 since it doesn't like cascading updates). This report will be used to correct these settings. It looks like a simple case of cut-and-paste error.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #543265 Thu May 31 21:24:46 UTC 2007 kwsutter OPENJPA-248. Modified parseForeignKey to set the appropriate cascade update action.
Files Changed
MODIFY /openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java

Kevin Sutter added a comment - 31/May/07 09:26 PM
Fixed via svn revision 543265.

Kevin Sutter made changes - 31/May/07 09:26 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Kevin Sutter made changes - 31/Jul/07 07:03 PM
Status Resolved [ 5 ] Closed [ 6 ]