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.
Development build #200604210200 of NetBeans 5.5 Windows XP, JDK 1.5.0_05 build #05 Description: ============ Code completion of annotations from database based on persistence.xml file does not work because generation of persistence units has changed and does not comply with format necessary for code completion. Steps to reproduce: =================== 1. Register GlassFish application server in Runtime tab. 2. Unzip attached EJBModule2 project and open it. 3. Right click project node and "Resolve Missing Server Problem...". 4. Open "Source Packages|test|Product.java" file in editor. 5. Set your cursor at position 26:16 i.e. @Table(name = "| and press CTRL+Space. 6. "No suggestions" shows up instead of list of database tables.
Created attachment 29980 [details] Zipped project reproducing not working completion of DB annotations.
*** Issue 76042 has been marked as a duplicate of this issue. ***
P1 to match the priority of duplicate issue 76042. This is very likely caused by ProviderUtil.getConnection(PersistenceUnit) only using the persistence unit properties to retrieve the connection properties (database url etc.). It ignores the jta-data-source and non-jta-data-source elements.
Fixed. Checking in j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/editor/completion/db/DBCompletionContextResolver.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/editor/completion/db/Attic/DBCompletionContextResolver.java,v <-- DBCompletionContextResolver.java new revision: 1.1.4.23; previous revision: 1.1.4.22 done Checking in j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/provider/ProviderUtil.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/provider/Attic/ProviderUtil.java,v <-- ProviderUtil.java new revision: 1.1.2.24; previous revision: 1.1.2.23 done
verified in 20060525-0458 This Issue marks a problem of @Table(name="| that stil doesn't work, but it works for @Table(name=| Without ' " ' ! Which is all right acording the tutorials.