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.
Implement new Datasources API for entity classes from db -> like use database action in enterpise resources has.
This will require couple of changes. Firstly, since the j2ee/persistence module is in the ide cluster it has an SPI that allows Ejb and Web projects to manage the currently used data source combo box. It seems that the new data sources API needs a combo box and a button, so the SPI has to be modified. Secondly, DatasourceUIHelper (in j2ee/utilities) that is used by the SPI implementors can handle only a combo and furthermore doesn't use the new UI needed by the new API. Thirdly, the new panel for this is in j2ee/ejbcore and therefore can't be reused. So the panel, and preferably all the logic for handling data sources with the new API, should be moved from j2ee/ejbcore to j2ee/utilities.
Forgot to add that also the new Persistence Unit wizard and the persistence unit panel in the visual editor should be changed to use the new API.
From the comments emononen made, it requires lots of changes to use the new API. I would like to know what are the benifits of using the new API.
NetBeans.org Migration: changing resolution from LATER to WONTFIX