This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, I'm running NB6 dev 200708210000 and when I open the persistence.xml and change the value of 'Table Generation Strategy' for example from 'Create' to 'Drop and Create' in the design view by setting the appropriate radio-box and then save the file. The file is not changed. So when I close the file and open it again, I get the old 'Create' value, and so the change wasn't saved. When I change the file in the XML editor, and save it. Then it all works perfectly. Iwan
I couldn't reproduce this with the same build on Win XP / JDK 6. I tried with a web application (Java EE 5) and with a Java SE application and changing the table generation strategy in the visual UI worked as expected. Would you be able to give any additional details on this? I am also downgrading this to P2 as per the priority guidelines (a workaround exists). Thanks.
I've tried it with a brand new project and then it works fine. So I copied my persistence.xml into that new project and then it doesn't work. I'll attach the faulty file. This file is created with NB551. Iwan
Created attachment 47265 [details] Faulty persistence.xml as used to reproduce the bug
Thanks for following up on this. It seems to be caused by that the persistence unit created in 5.5 has a different provided class for Toplink, namely oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider, whereas 6.0 expects it to be oracle.toplink.essentials.PersistenceProvider. Please see issue 87704 for more info on that. So to make it work, just change the provider class in the xml view. This is a bug however as the editor should be able to handle persistence units created in 5.5. I will fix it for 6.0.
Fixed in trunk. Checking in ProviderUtil.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/provider/ProviderUtil.java,v <-- ProviderUtil.java new revision: 1.17; previous revision: 1.16 done Checking in ToplinkProvider.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/provider/ToplinkProvider.java,v <-- ToplinkProvider.java new revision: 1.4; previous revision: 1.3 done