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 123556

Summary: invoking use entity manager action twice generates uncompilable code
Product: javaee Reporter: luismolina <luismolina>
Component: PersistenceAssignee: Dongmei Cao <dongmeic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description luismolina 2007-12-06 10:32:50 UTC
if you use the contextual menu in the code view and select two times the "use entity manager" option, the wizard insert
two times the same text, and the compiler brokes, there could be a check condition to show the option, also i think i
post sometimes that this option doesnt offers the same in windows and linux, i will try this weekend and tell you.

the code inserted its the @persistence......, i mean the code needed to use the em entity manager
Comment 1 Erno Mononen 2007-12-07 13:39:17 UTC
Reproducible in a servlet (in a 2.5 web app), 6.0 final. IMO seems like a P4 though, so I'm downgrading. Thanks for the 
report.
Comment 2 Dongmei Cao 2008-11-19 21:52:09 UTC
low priority
Comment 3 Quality Engineering 2009-11-02 11:17:01 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX