DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-435
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Max Ross (App Engine)
Votes: 0
Watchers: 0

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

CascadeType.ALL on ManyToOne causes StackOverflow

Created: 25/Dec/09 01:10 AM   Updated: 03/Apr/10 10:45 AM   Resolved: 25/Dec/09 12:29 PM
Component/s: Persistence
Affects Version/s: None
Fix Version/s: 2.0.0.release

File Attachments: 1. Zip Archive (3 kB)

Environment: os x 10.5.8, java 6

Datastore: HSQL, Other
Severity: Production

 Description  « Hide
Bug was reported on App Engine forums but I confirmed it with an rdbms plugin built from trunk.
Here's the app engine issue:

Basically, CascadeType.ALL on a ManyToOne causes a StackOverflow error when deleting the owning object if the OneToMany is also CascadeType.ALL. I'll attach a JPA project reproduces the issue. I haven't tried it with JDO. Let me know if you need any more info.


Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 25/Dec/09 12:29 PM
TODO in DeleteFieldManager now completed