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 269219

Summary: Persistence library can be created but not selected
Product: javaee Reporter: Peter Nabbefeld <epdv>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Peter Nabbefeld 2016-12-02 22:18:21 UTC
In the Design view of persistence.xml editor, You can add a new persistence library, but it's not possible to use it.

1. I've created a DataNucleus library from jar files.
2. I tried to select it in the drop down list; even restarted NB, without any effect.

Also, e.g. for Hibernate there may be multiple providers, which should be selectable.

IMHO, it would be best to check for META-INF/services/javax.persistence.spi.PersistenceProvider and add implementations to the drop down list. (I'd prefer not to use lookup at this point, because of issue #269101)