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 92207

Summary: The Entity Class wizards need to have options for configuring persistence providers
Product: javaee Reporter: Erno Mononen <emononen>
Component: PersistenceAssignee: Josef Holy <jholy>
Status: NEW ---    
Severity: blocker CC: abadea
Priority: P2 Keywords: UI
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 93819    
Bug Blocks:    

Description Erno Mononen 2007-01-10 13:18:44 UTC
Currently when you invoke the entity classes from DB or the standard entity 
class wizard without having created a persistence unit the generated classed 
are not compilable due to missing javax.persistence.* classes. It would be nice 
if there was a possibility to add a library containing the required classes in 
the wizards. Therefore, based on Andrei's idea I'd like to suggest removing the 
'create pu' button from the step two (step one in the standard ec wizard) in 
the wizards and putting it to an additional step, which would also contain 
options for adding a persistence provider library to the probject. 

The additional panel would contain three radio buttons; one for creating a pu, 
one for adding a library to the project and one for taking no action. The 
create pu option would have a button for customizing it (it would basically 
open the dialog that's now have for creating a pu) and the add library button 
would have an associated combo box for selecting the provider library. The 
space freed by the moving of the create pu button in the second panel could be 
used by future enchancements in the wizards.

If needed, I can illustrate the proposal with some ASCII art.
Comment 1 Rochelle Raccah 2007-01-11 01:34:43 UTC
See also issue 75948 and issue 82634.