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.
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.
That would make more sense IMHO. Let's discuss the details in issue 96777.
Closing as issue 96777 has been resolved.