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 - Empty persistence.xml file is created
Summary: Empty persistence.xml file is created
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 13:27 UTC by Petr Blaha
Modified: 2006-05-31 17:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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