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 247505

Summary: persistence.xml editing doesn't honor JPA version
Product: javaee Reporter: jan.cetkovsky
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description jan.cetkovsky 2014-09-26 21:02:44 UTC
when using the graphical persistence.xml editor, it doesn't honor JPA version and appropriate keyspaces (if the provider is changed e.g from JPA 2.1 to JPA 2.0 the persistence version stays at 2.1)

also if project has associated J2EE 6 server (and no JPA 2.0 provider is defined among persistence libraries) it creates 2.1 persistence.xml which fails on deploy on given server (instead of giving warning, not allowing to proceed etc.)