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 196274

Summary: Create Persistence Unit should add dependencies to project...
Product: javaee Reporter: hantsy <hantsy>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description hantsy 2011-03-04 07:23:32 UTC
I create a maven based JEE6 web application and try to create a persistence unit in it.
I selected Glassfish Server as application server.
When I selected Hibernate as JPA provider which are not provided by Glassfish by default.
1.It should added Hibernate dependency to the project pom.xml file.
2.Before creating  persistence unit, NetBeans requires application server is set, it should also determine the dependency scope of JPA provider. For example, if I installed Hibernate via Glassfish update tool, the scope should provided, other is use default value(do not set).
Comment 1 Sergey Petrov 2011-03-04 07:28:26 UTC
first one should work, if not please change back to defect.
second one isn't supported yet (handle additional providers installed on server) and looks more like enhancement.
Comment 2 Martin Balin 2016-07-07 08:55:35 UTC
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