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 - Create Persistence Unit should add dependencies to project...
Summary: Create Persistence Unit should add dependencies to project...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 07:23 UTC by hantsy
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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