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 117692 - Need API support for retrieving dbschema and generating JPA classes
Summary: Need API support for retrieving dbschema and generating JPA classes
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-03 19:36 UTC by Nam Nguyen
Modified: 2008-01-17 15:57 UTC (History)
0 users

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 Nam Nguyen 2007-10-03 19:36:56 UTC
Currently REST support module could only offer wizard to generate resource classes from existing entity classes.
We would like our wizard to be able to present the tables for user to select for JPA class generation and subsequent
REST resource classes generation.  This will improve REST work flow.  This will also benefit other tools that support
interfacing with database.
Comment 1 Erno Mononen 2007-10-04 10:29:40 UTC
Have had a look at org.netbeans.modules.j2ee.persistence.api.entity.generator.EntitiesFromDBGenerator ? If not, please 
take a look and let me know how it would suit your needs.
Comment 2 Nam Nguyen 2007-10-05 02:41:41 UTC
Thanks for pointing out this.  Seems a good start.  Is there some convenient API call to get list of table names from a
database connection?