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 122824

Summary: [60cat] Inconsistent warning message upon creating entities in Entity Class and Entity Class from Database wizards
Product: javaee Reporter: jlaskowski <jlaskowski>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://j2ee.netbeans.org/docs/promog/persistence-ui-spec.html#Step_2_New_Entity_Class
Issue Type: DEFECT Exception Reporter:

Description jlaskowski 2007-11-27 09:03:20 UTC
[ BUILD # : 200711201000 ]
[ JDK VERSION : 1.6.0_02 ]

Steps to reproduce:
1/ Use New > Entity Class menu and upon filling in the Package field,
the warning message: "The project does not have a persistence unit.
You need a persistence unit to persist entity classes" is displayed
with the exclamation mark icon *below* the Create Persistence Unit
button.

2/ use New > Entity Class from Database menu and in Entity Classes
panel, the warning message: "The project does not have a persistence
unit. You need a persistence unit to persist entity classes" is
displayed *without* the exclamation mark icon *above* the Create
Persistence Unit button.
Comment 1 John Baker 2007-11-27 18:05:34 UTC
looks like JPA issue
Comment 2 Andrei Badea 2007-11-28 10:15:30 UTC
See UI spec.
Comment 3 Erno Mononen 2007-12-04 10:43:14 UTC
So according to the spec the warning icon is missing from the Entities from DB wizard and in the Entity Wizard the 
warning should be displayed above the button. Need to add a label for the warning to the EW panel as now the warning 
is set to the underlying wizard descriptor. Anyway, I'm lowering this to P4 as per the priority guidelines (minor 
usability problem). Thanks for reporting.
Comment 4 Dongmei Cao 2008-07-25 23:22:48 UTC

*** This issue has been marked as a duplicate of 84484 ***