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.
In Java EE 6 web project there is no reason to have PersistenceService class. An EntityManager instance can be injected to session bean(stateless), which can be part of web application in Java EE 6. The generated code should be changed, and radically simplified, to use new Java EE 6 features, like the code generated in Session Beans from Entity Classes. Now Netbeans is showing bad practices in Java EE 6 projects.
http://hg.netbeans.org/main?cmd=changeset;node=14f9a5372b0b
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/14f9a5372b0b User: mkuchtiak@netbeans.org Log: #173984: Rest From Entities : generate Java EE 6 code
v.