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 102726 - Implement new Datasources API for entity classes from db
Summary: Implement new Datasources API for entity classes from db
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-27 10:42 UTC by Michal Mocnak
Modified: 2009-11-02 11:17 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 Michal Mocnak 2007-04-27 10:42:27 UTC
Implement new Datasources API for entity classes from db -> like use database
action in enterpise resources has.
Comment 1 Erno Mononen 2007-08-13 16:37:18 UTC
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.
Comment 2 Erno Mononen 2007-08-13 16:38:50 UTC
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.
Comment 3 Dongmei Cao 2008-11-18 00:32:15 UTC
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.
Comment 4 Quality Engineering 2009-11-02 11:17:20 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX