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.
Summary: | Changing persistence.xml through UI doesn't change when saving | ||
---|---|---|---|
Product: | javaee | Reporter: | ieising <ieising> |
Component: | Persistence | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Faulty persistence.xml as used to reproduce the bug |
Description
ieising
2007-08-22 19:23:48 UTC
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 |