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 74547

Summary: Tables which have existing POJOs not disabled after restart
Product: javaee Reporter: Rochelle Raccah <raccah>
Component: PersistenceAssignee: Dongmei Cao <dongmeic>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 95534    
Bug Blocks:    
Attachments: project

Description Rochelle Raccah 2006-04-06 23:48:09 UTC
1) Start the IDE with a new userdir
2) Open the project which I will attach
3) Register GlassFish in the server manager
4) Wait for scanning classpaths to complete
5) Right click on Source Packages, choose New File/Folder
6) Open the new Entity from DB wizard
7) Choose the package1/JavaApplication1 dbschema file

Bug is that PRIMITIVE_TYPES table is not disabled because of the existing POJO
in the same package.

Note that I tried a second time after my IDE had been open for several hours and
it was disabled.
Comment 1 Rochelle Raccah 2006-04-06 23:50:00 UTC
Created attachment 29679 [details]
project
Comment 2 Andrei Badea 2006-07-28 10:39:03 UTC
Need to wait for ORMMetadata to finish scanning.
Comment 3 Andrei Badea 2007-02-15 17:47:01 UTC
Could be handled by the new metadata model.
Comment 4 Andrei Badea 2008-01-15 12:23:31 UTC
Need to use the metadata model to check for existing entity classes in JavaPersistenceGenerator. A bit tricky, since the
model should not be called in the AWT thread.
Comment 5 Andrei Badea 2008-01-15 16:57:06 UTC
*** Issue 123763 has been marked as a duplicate of this issue. ***
Comment 6 Dongmei Cao 2008-07-17 19:55:32 UTC
Fixed in changeset 617eac3402b2

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