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 121150 - Create EJB Entities from application server data source
Summary: Create EJB Entities from application server data source
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on: 89019
Blocks:
  Show dependency tree
 
Reported: 2007-11-05 08:29 UTC by wvreeven
Modified: 2009-02-19 22:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wvreeven 2007-11-05 08:29:49 UTC
Using the MevenIDE plugin for Netbeans it is possible to create a project with packaging type EJB. After doing so,
editing the project properties allows you to select the application server to which to deploy the project to. It would
be great to be able to select "New" -> "Entity Classes from Database" and then be able to select a data source from the
application server. Also, creating a Persistence Unit should allow to select the application server data sources and not
only the database connections that are present in Netbeans.
Comment 1 Milos Kleint 2007-11-06 12:05:26 UTC
it's necessary to implement org.netbeans.modules.j2ee.persistence.spi.datasource.JPADataSourcePopulator and 
org.netbeans.modules.j2ee.persistence.spi.datasource.JPADataSourceProvider in maven projects. These are not a public api
so far.
Comment 2 Milos Kleint 2009-01-16 11:52:48 UTC
http://hg.netbeans.org/main/rev/d6323cdb74c5

I think I've got it fixed now, however can't really verify as I have no idea how to add the datasources to the app
server. jpospisil, can you please check? I think some JPA related wizards shall start working now as well.

Comment 3 Quality Engineering 2009-01-17 06:53:17 UTC
Integrated into 'main-golden', will be available in build *200901170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d6323cdb74c5
User: Milos Kleint <mkleint@netbeans.org>
Log: #121150 implement  j2ee persistence contract in maven modules