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 - persistence.xml editing doesn't honor JPA version
Summary: persistence.xml editing doesn't honor JPA version
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 21:02 UTC by jan.cetkovsky
Modified: 2014-09-26 21:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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