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 225148 - Usage of deprecated isToolSupported api for jpa
Summary: Usage of deprecated isToolSupported api for jpa
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 16:18 UTC by Sergey Petrov
Modified: 2013-02-18 16:09 UTC (History)
3 users (show)

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 Sergey Petrov 2013-01-21 16:18:16 UTC
GF does not implement JpaSupportImplementation. isToolSupported is really deprecated for cases which are covered by specs.support
Comment 1 Petr Jiricka 2013-01-23 10:51:29 UTC
This is needed as part of the Java EE 7 effort.
Comment 2 Sergey Petrov 2013-02-05 17:03:53 UTC
some use cases where persistence support is tested for specific server:
- create web project on gf server
- invoke Persistece|Persistence Unit wizard.
Wizard step with providers selection combobox is dependent on server support (only supported providers should be in the combobox, if there are no providers or unsupported providers it's either  persistence support issue or server plugin issue, api may require review and update also)
Comment 3 Sergey Petrov 2013-02-11 11:57:41 UTC
current realization on javaee7 report only jpa1 as supported for both gf 4 and gf3
Comment 4 Petr Jiricka 2013-02-11 12:18:52 UTC
Sounds like a P2, changing priority.
Comment 5 TomasKraus 2013-02-11 12:36:31 UTC
Well, GF does implement JpaSupportImplementation now. :)
It's just not working well because of some broken server version check.
I'll take care of that after finishing JavaEE platform configuration changes.
Comment 6 TomasKraus 2013-02-14 10:56:09 UTC
Version issue is fixed, I can see JPA 1.0, 2.0 and 2.1 in wizard.
Should be resolved in javaee7 branch. Will keep this open until we'll have it in trunk.
Comment 7 Sergey Petrov 2013-02-14 11:51:26 UTC
eclipselink (jpa 2.1) may be visible even for gf 2.x as it should be backward compatible and is bundled with netbeans, but jpa 1.0 will be used with this provider in this case(and jpa 2.0 in case of gf 3.x)
Comment 8 TomasKraus 2013-02-14 13:23:28 UTC
GflasFish plugin does not support versions older than 3.0 so we don't have to care about GF 2 and older.
Comment 9 TomasKraus 2013-02-18 16:09:18 UTC
Closing as resolved after javaee7 branch merge today. This should work in trunk too.