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.
(NetBeans 201106180600) - create a web project - add an entity, say Employee - generate the persistence.xml - select drop&create strategy - create a @Singleton/@Startup bean grabbing the EntityManager and persisting a couple of Employee - deploy application - observe the creation of tables and the data being added - make a copy of the project (right-click > copy project) - edit the persistence.xml to remove the drop&create strategy - deploy the application - this triggers errors showing this new application tries to drop&create tables, probably showing that the old persistence.xml is used by this new application Got SQLException executing statement "CREATE TABLE CUSTOMER..." - doing a "Clean and Build" followed by a "Deploy" fixes the problem There is some stale project metadata somewhere...
Created attachment 109078 [details] Sample project which needs to be copied to reproduce
Sounds like a persistence hint issue --> reassigning to Persistence for evaluation
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss