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 96779

Summary: Provide a way to create persistence.xml in J2SE project
Product: javaee Reporter: Jan Stola <jstola>
Component: PersistenceAssignee: Erno Mononen <emononen>
Status: RESOLVED FIXED    
Severity: blocker CC: abadea, arseniy, pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 89495, 91757    

Description Jan Stola 2007-02-28 13:46:42 UTC
Use case: user DnD DB table onto GUI form in order to display DB data in this 
form.

When the user performs the mentioned use case for the first time (in a project 
that is not using JPA), we have to make sure that the persistence.xml file is 
created.

Of course, it doesn't have a sense to have a presistence.xml file without a 
persistence unit.  So, it is fine for us to create the persistence.xml file as 
a part of creation of the first persistence unit in the project (see issue 
96777) - if you prefer this solution then feel free to close this issue when 
the issue 96777 will be fixed.
Comment 1 Andrei Badea 2007-03-01 08:57:10 UTC
That would make more sense IMHO. Let's discuss the details in issue 96777.
Comment 2 Erno Mononen 2007-03-20 09:42:35 UTC
Closing as issue 96777 has been resolved.