Incorrect handling of cascading bidirectional collections during merge/attach

2007-04-30 Thread Gokhan Ergul
Hey there, I'm having a problem merging an entity, here's the simplified structure: Class A { @OneToMany(cascade=CascadeType.ALL, mappedBy="parent") Set b_set; ... } Class B { @ManyToOne A parent; @OneToMany(cascade=CascadeType.ALL, mappedBy="parent") Set c_set; ...

Re: [jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-05-03 Thread Gokhan Ergul
Philippe, I must admit I'm quite illiterate when it comes to Eclipse --ditched it a long time ago in favor of Idea. You must be right about the build.xml being a not-so-straightforward root for Eclipse import, it didn't occur to me that it could be used that way. Having said that, here's my (

Re: [jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-05-14 Thread Gokhan Ergul
Philippe Alexis wrote: Hi Gokhan, I'd been busy with work but kept this particular issue at the back of my mind for coming back to. How far did you get investigating it? Not far I'm afraid --I'm still running with the patch I've posted on jira that fixes the detached case. Since the applicatio

Re: [jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-05-14 Thread Gokhan Ergul
Philippe Alexis wrote: Firstly, I had no problem getting updateAttached (EntityManager em) to run fine on both SQL Server and Postgresql, got the count of 4. Forgot to comment on this one: I don't use Postgres or SQLServer, but I'm assuming they have this nifty little feature called "deferre

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Gokhan Ergul
Marc Prud'hommeaux wrote: That is correct: the reversemappingtool only currently supports generating an orm.xml file. We would like to add support for generating annotations someday, but it is not there yet. Would you guys be interested in getting donations in that area? We do have our ho

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-16 Thread Gokhan Ergul
Marc, Patrick, What would be the correct medium to discuss various design/implementation details? This mailing list / jira or somewhere else? Gokhan. Marc Prud'hommeaux wrote: I've gone ahead and created https://issues.apache.org/jira/browse/OPENJPA-239 in order to track comments and patc

Re: [jira] Commented: (OPENJPA-235) SQL reordering to avoid non-nullable foreign key constraint violations

2007-05-22 Thread Gokhan Ergul
Patrick Linskey wrote: Gokhan, I am interested in the test cases that this broke so if you have time please email me. +1 -- if you've got any test cases that we could incorporate into the OpenJPA build environment, it'd be great to get them integrated. Existing test cases are part of an applica

Re: [jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-05-22 Thread Gokhan Ergul
Philippe Alexis wrote: ... snip > On MySQL, updateDetached works fine with the modification: > @ManyToOne(cascade=CascadeType.ALL) I'm assuming you're running without the patch I've included in the testcase? With the patch it should work without messing around with @ManyToOne. > The thing wi

Re: [jira] Commented: (OPENJPA-235) SQL reordering to avoid non-nullable foreign key constraint violations

2007-05-22 Thread Gokhan Ergul
Marc Prud'hommeaux wrote: Gokhan- On a related note, does the build process support/plan to support TestNG tests or should I stick to junit? I looked into this a little while back: Maven supposedly supports both TestNG and JUnit used together in tandem, but I was never able to get it workin

Re: Will reversemappingTask() generate EJB3 annotations?

2007-05-23 Thread Gokhan Ergul
Patrick Linskey wrote: Would you guys be interested in getting donations in that area? Certainly! We do have our homegrown solution that does that (along with some other goodies as well). It's currently based on our metadata representation reverse-engineered from the database schema, it'd be

[jira] Created: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-04-30 Thread Gokhan Ergul (JIRA)
Issue Type: Bug Components: kernel Affects Versions: 0.9.7 Environment: platform-independent Reporter: Gokhan Ergul As posted on open-jpa-dev mailing list: - I'm having a problem merging an entity, here's the simplified structure

[jira] Updated: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-04-30 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokhan Ergul updated OPENJPA-231: - Attachment: jira-test-case.zip Attaching test-case to reproduce the issue and suggested patch

[jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-04-30 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492830 ] Gokhan Ergul commented on OPENJPA-231: -- Note that the patch is developed against a nightly-snapshot of 0.9.7

[jira] Commented: (OPENJPA-231) Incorrect handling of cascading bidirectional collections during merge/attach

2007-05-02 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493193 ] Gokhan Ergul commented on OPENJPA-231: -- Further testing reveals that the patch I submitted solves only

[jira] Commented: (OPENJPA-235) SQL reordering to avoid non-nullable foreign key constraint violations

2007-05-21 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497650 ] Gokhan Ergul commented on OPENJPA-235: -- FWIW, I've tested the patch with the hope that it'd also f

[jira] Updated: (OPENJPA-235) SQL reordering to avoid non-nullable foreign key constraint violations

2007-05-30 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokhan Ergul updated OPENJPA-235: - Attachment: merge-detached.patch merge-multigen-collection-testcase.zip Reece

[jira] Created: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-14 Thread Gokhan Ergul (JIRA)
: Bug Components: kernel Environment: openjpa 0.9.6 Reporter: Gokhan Ergul Both buildtime and runtime class enhancement fail with the following error: ... 1339 TRACE [main] openjpa.Enhance - Enhancing type "class test.B". Exception in thread "main&

[jira] Updated: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-14 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokhan Ergul updated OPENJPA-146: - Attachment: test-case.zip Test case and trace output attached. > Entity enhancement fa

[jira] Commented: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-17 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473901 ] Gokhan Ergul commented on OPENJPA-146: -- 0.9.7-snapshot seems to have solved this indeed, thanks. > Ent

[jira] Resolved: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-17 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokhan Ergul resolved OPENJPA-146. -- Resolution: Fixed > Entity enhancement fails while using EmbeddedId on a MappedSupercl

[jira] Commented: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-17 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473911 ] Gokhan Ergul commented on OPENJPA-146: -- Alright, it did manifest itself in a different way as you guessed

[jira] Reopened: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-17 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gokhan Ergul reopened OPENJPA-146: -- > Entity enhancement fails while using EmbeddedId on a MappedSupercl

[jira] Commented: (OPENJPA-146) Entity enhancement fails while using EmbeddedId on a MappedSuperclass

2007-02-20 Thread Gokhan Ergul (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474525 ] Gokhan Ergul commented on OPENJPA-146: -- Fix confirmed, thanks. > Entity enhancement fails while us