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

Summary: Need API support for retrieving dbschema and generating JPA classes
Product: javaee Reporter: Nam Nguyen <nnguyen>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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?