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.

Bug 73281

Summary: Empty persistence.xml file is created
Product: javaee Reporter: Petr Blaha <blaha>
Component: PersistenceAssignee: Erno Mononen <emononen>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Blaha 2006-03-06 13:27:22 UTC
[build 20060306]
Steps:
1) create new web application with JBoss target server
2) generate Entity classes from DB and create persistence.xml
3) open persistence.xml in XML view
ERROR: the file is epmty:
<?xml version="1.0" encoding="UTF-8"?>

<persistence xmlns="http://java.sun.com/xml/ns/persistence">
</persistence>
Comment 1 Petr Blaha 2006-03-07 09:30:06 UTC
The bug is reproducible with Glassfish too. 
Comment 2 Erno Mononen 2006-03-08 13:21:29 UTC
Fixed in the release55 branch. This issue is related to #73337, caused by data 
object not being marked as modified in certain cases.   

http://j2ee.netbeans.org/source/browse/j2ee/persistence/src/org/netbeans/
modules/j2ee/persistence/wizard/fromdb/MultipleEntitySetupPanel.java?r1=1.1.2.4.
2.8&r2=1.1.2.4.2.9

http://j2ee.netbeans.org/source/browse/j2ee/persistence/src/org/netbeans/
modules/j2ee/persistence/unit/PUDataObject.java?r1=1.1.2.6.2.3&r2=1.1.2.6.2.4
Comment 3 Jan Horvath 2006-03-30 16:22:42 UTC
v