Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "New Help for Old Friends VIII"
(→JPA Core (Provisional API)) |
(→General) |
||
Line 18: | Line 18: | ||
=== General === | === General === | ||
− | * All the <code>BundleActivator</code> implementations (e.g. <code>JptJpaCorePlugin</code>) were moved from public packages to private packages and all public members moved to the appropriate public interfaces etc. | + | * All the <code>BundleActivator</code> implementations (i.e. "plug-in" classes; e.g. <code>JptJpaCorePlugin</code>) were moved from public packages to private packages and all public members moved to the appropriate public interfaces etc. |
=== Common Core (Provisional API) === | === Common Core (Provisional API) === |
Revision as of 13:47, 18 June 2012
Contents
Overview
This page collects notes and pointers to changes coming up in the WTP 3.5 (Kepler) release.
This page acts as a central "jumping off" point for those adopters of WTP that are moving up from a previous version of WTP. Most of this information may be already contained in various mailing lists and Bugzilla reports, but it is believed best to have a central place to get people started. Adopters: if you run into trouble or notice things that are not covered here, please update this page and/or let us know (such as by opening a bug, or sending a note to wtp-dev). Web Tools is a Platform and we strive to provide compatible API evolution with clear migration paths, instructions, etc.
One thing we have learned in the past is that some adopters do not move with us to every new release. Some early adopters went from 0.7 directly to 1.5, for example. Unfortunately, it is difficult to present the information in that way, covering multiple changes across multiple version ranges, so those types of migrations have to read about migrating to each version.
Note: as these notes develop and grow in number, they may occasionally be re-organized into categories, etc.
Dali
General
- All the
BundleActivator
implementations (i.e. "plug-in" classes; e.g.JptJpaCorePlugin
) were moved from public packages to private packages and all public members moved to the appropriate public interfaces etc.
Common Core (Provisional API)
-
JptCommonCorePlugin
- moved to private package and moved its members to the appropriate public interfaces etc.
Old | New |
---|---|
JAVA_SOURCE_CONTENT_TYPE | JavaResourceCompilationUnit.CONTENT_TYPE |
JAVA_SOURCE_RESOURCE_TYPE | JavaResourceCompilationUnit.RESOURCE_TYPE |
JAVA_SOURCE_PACKAGE_INFO_CONTENT_TYPE | JavaResourceCompilationUnit.PACKAGE_INFO_CONTENT_TYPE |
JAVA_SOURCE_PACKAGE_INFO_RESOURCE_TYPE | JavaResourceCompilationUnit.PACKAGE_INFO_RESOURCE_TYPE |
JAR_CONTENT_TYPE | JavaResourcePackageFragmentRoot.JAR_CONTENT_TYPE |
JAR_SOURCE_RESOURCE_TYPE | JavaResourcePackageFragmentRoot.JAR_RESOURCE_TYPE |
getLibraryValidators(...) | LibraryValidatorManager.getLibraryValidators(...) |
JPA Database (Provisional API)
- Promoted the method
refresh()
from Schema to DatabaseObject
JPA Core (Provisional API)
-
JptJpaCorePlugin
- moved to private package and moved its members to the appropriate public interfaces etc.
Old | New |
---|---|
DEFAULT_PERSISTENCE_XML_RUNTIME_PATH | XmlPersistence.DEFAULT_RUNTIME_PATH |
PERSISTENCE_XML_CONTENT_TYPE | XmlPersistence.CONTENT_TYPE |
PERSISTENCE_XML_1_0_CONTENT_TYPE | XmlPersistence.CONTENT_TYPE |
PERSISTENCE_XML_2_0_CONTENT_TYPE | XmlPersistence.CONTENT_TYPE |
MAPPING_FILE_CONTENT_TYPE | ResourceMappingFile.Root.CONTENT_TYPE |
DEFAULT_ORM_XML_RUNTIME_PATH | XmlEntityMappings.DEFAULT_RUNTIME_PATH |
ORM_XML_CONTENT_TYPE | XmlEntityMappings.CONTENT_TYPE |
ORM_XML_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE |
ORM_XML_1_0_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_1_0 |
ORM_XML_2_0_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_0 |
VALIDATION_MARKER_ID | JpaValidator.MARKER_ID |
VALIDATOR_ID | removed |
WEB_FACET | ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_WEB_MODULE) |
USER_OVERRIDE_DEFAULT_CATALOG | JpaProject.USER_OVERRIDE_DEFAULT_CATALOG_PERSISTENT_PROPERTY_KEY |
USER_OVERRIDE_DEFAULT_SCHEMA | JpaProject.USER_OVERRIDE_DEFAULT_SCHEMA_PERSISTENT_PROPERTY_KEY |
DATA_SOURCE_CONNECTION_PROFILE_NAME | JpaDataSource.CONNECTION_PROFILE_NAME_PERSISTENT_PROPERTY_KEY |
getConnectionProfileName(...) | removed |
setConnectionProfileName(...) | removed |
getUserOverrideDefaultCatalog(...) | removed |
setUserOverrideDefaultCatalog(...) | removed |
getUserOverrideDefaultSchema(...) | removed |
setUserOverrideDefaultSchema(...) | removed |
clearProjectPersistentProperties(...) | removed |
getJarRuntimeRootPath(...) | ProjectTools.getJarRuntimeRootPath(...) |
nodeIsXml2_0Compatible(...) | |
projectHasWebFacet(...) | ProjectTools.hasWebFacet(...) |
-
JpaStructureNode
now extendsJpaContextNode
- renamed
AbstractXmlResourceProvider
toAbstractJpaXmlResourceProvider
and moved to internal package
- added method to
JpaXmlResourceProvider
- moved
JpaXmlResourceProvider
to appropriate package and added methodcreateFileAndResource(...)
- cleaned up support for non-XML mapping files:
- changed the resource passed to the method
JpaFactory.buildMappingFile(...)
fromJpaXmlResource
toObject
- moved
MappingFileRoot
to be a member type:MappingFile.Root
- added change support for
MappingFile.ROOT_PROPERTY
- added methods to
MappingFile
:-
getResourceMappingFile()
-
validate(...)
-
getValidationTextRange()
-
-
MappingFilePersistenceUnitMetadata
now extendsJpaContextNode
, notXmlContextNode
and declares the methodgetValidationTextRange()
-
MappingFilePersistenceUnitDefaults
now extendsJpaContextNode
, notXmlContextNode
- added support for a root to
XmlFile
-
OrmXml
now extendsXmlFile
-
EntityMappings
now extends bothMappingFile.Root
andXmlFile.Root
-
Persistence
now extendsXmlFile.Root
- replaced
PersistenceXml.getPersistence()
withgetRoot()
- changed the resource passed to the method
- removed
JpaXmlStructureNode
and moved methodgetXmlCompletionProposals(...)
toXmlContextNode
- removed unneeded method
MappingFileRef.isFor(...)
- renamed
MappingFileRef.isImplied()
toMappingFileRef.isDefault()
- renamed
PersistenceXmlContextNodeFactory.buildImpliedMappingFileRef(...)
toPersistenceXmlContextNodeFactory.buildVirtualMappingFileRef(...)
- added method
JpaNode.getJpaPlatform()
- deleted class
JpaFacet
- moved
ID
toJpaProject.FACET_ID
- moved
FACET
toJpaProject.FACET
- moved
VERSION_1_0
toJpaProject.FACET_VERSION_STRING
andJpaProject.FACET_VERSION
- moved
VERSION_2_0
toJpaProject2_0.FACET_VERSION_STRING
andJpaProject2_0.FACET_VERSION
- moved
JAXB Core (Provisional API)
-
JptJaxbCorePlugin
- moved to private package and moved its members to the appropriate public interfaces etc.
Old | New |
---|---|
JAXB_INDEX_CONTENT_TYPE | JaxbIndexResource.CONTENT_TYPE |
JAXB_INDEX_RESOURCE_TYPE | JaxbIndexResource.RESOURCE_TYPE |
JAXB_PROPERTIES_CONTENT_TYPE | JaxbPropertiesResource.CONTENT_TYPE |
JAXB_PROPERTIES_RESOURCE_TYPE | JaxbPropertiesResource.RESOURCE_TYPE |
VALIDATION_MARKER_ID | JaxbValidator.MARKER_ID |
EclipseLink JPA Core (Provisional API)
-
JptJpaEclipseLinkCorePlugin
- moved to private package and moved its members to the appropriate public interfaces etc.
Old | New |
---|---|
DEFAULT_ECLIPSELINK_ORM_XML_RUNTIME_PATH | XmlEntityMappings.DEFAULT_RUNTIME_PATH |
ECLIPSELINK_ORM_XML_CONTENT_TYPE | XmlEntityMappings.CONTENT_TYPE |
ECLIPSELINK_ORM_XML_1_0_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_1_0 |
ECLIPSELINK_ORM_XML_1_1_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_1_1 |
ECLIPSELINK_ORM_XML_1_2_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_1_2 |
ECLIPSELINK_ORM_XML_2_0_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_0 |
ECLIPSELINK_ORM_XML_2_1_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_1 |
ECLIPSELINK_ORM_XML_2_2_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_2 |
ECLIPSELINK_ORM_XML_2_3_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_3 |
ECLIPSELINK_ORM_XML_2_4_RESOURCE_TYPE | XmlEntityMappings.RESOURCE_TYPE_2_4 |
ECLIPSELINK_PLATFORM_VERSION_1_0 | EclipseLinkJpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_1_1 | EclipseLink1_1JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_1_2 | EclipseLink1_2JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_2_0 | EclipseLink2_0JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_2_1 | EclipseLink2_1JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_2_2 | EclipseLink2_2JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_2_3 | EclipseLink2_3JpaPlatformFactory.VERSION |
ECLIPSELINK_PLATFORM_VERSION_2_4 | EclipseLink2_4JpaPlatformFactory.VERSION |
JPA UI (Provisional API)
- Enhanced
JpaPlatformUi
:- added
getTypeMappingUiDefinition(...)
- added
getAttributeMappingUiDefinition(...)
- added
- Converted
Iterator
s toIterable
s:-
JpaPlatformUi.getTypeMappingUiDefinitions(...)
-
JpaPlatformUi.getAttributeMappingUiDefinitions(...)
-
JpaPlatformUiProvider.getDetailProviders()
-
JpaPlatformUiProvider.getResourceUiDefinitions()
-
MappingResourceUiDefinition.getTypeMappingUiDefinitions()
-
MappingResourceUiDefinition.getAttributeMappingUiDefinitions()
-
- Enhanced
MappingResourceUiDefinition
:- added
getTypeMappingUiDefinition(...)
- added
getAttributeMappingUiDefinition(...)
- added
- Enhanced
MappingUiDefinition
:- added
getGhostImage()
- added
Reference
This document covers ONLY changes between WTP 3.5 and WTP 3.4. See also: