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.
New Help for Old Friends IX
Contents
Overview
This page collects notes and pointers to changes coming up in the WTP 3.6 (Luna) 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
Common Utility (Provisional API)
- renamed
.command.ParameterizedCommand
to.closure.Closure
- renamed
.command.InterruptibleParameterizedCommand
to.closure.InterruptibleClosure
- moved
ExceptionHandler
andMultiThreadExceptionHandler
toexception
package
Common UI (Provisional API)
- reworked item provider interfaces:
- new interface
ItemContentProvider
-
ItemTreeContentProvider
- now extends
ItemContentProvider
-
Manager
now extendsItemContentProvider.Manager
- method
updateChildren(Object)
changed tochildrenChanged(Object, Iterable, Iterable)
- method
-
Factory
now extendsItemStructuredContentProvider.Factory
- method
buildProvider(Object, Manager)
changed tobuildProvider(Object, Object, Manager)
- method
- now extends
-
ItemStructuredContentProvider
- now extends
ItemContentProvider
-
Manager
now extendsItemContentProvider.Manager
- method
updateElements(Object)
changed toelementsChanged(Object, Iterable, Iterable)
- method
- now extends
-
ItemLabelProvider
- added
isLabelProperty(String)
-
Manager
- method
updateLabel(Object)
changed tolabelChanged(Object)
- new method
getViewer()
- method
- added
-
ItemExtendedLabelProvider
-
Manager
- method
updateDescription(Object)
changed todescriptionChanged(Object)
- method
-
- new interface
JPA Core (Provisional API)
- Renamed
JpaContextModelRoot
toJpaContextRoot
and related changes:- renamed
JpaContextModelRoot2_0
toJpaContextRoot2_0
-
JpaFactory
- renamed
buildContextModelRoot(JpaProject)
tobuildContextRoot(JpaProject)
- renamed
-
JpaProject
- renamed
getContextModelRoot()
togetContextRoot()
- renamed
CONTEXT_MODEL_ROOT_TRANSFORMER
toCONTEXT_ROOT_TRANSFORMER
- renamed
ContextModelRootTransformer
toContextRootTransformer
- renamed
- renamed
- Refactored
JpaStructureNode
- renamed
getType()
togetStructureType()
and declared explicit return values - renamed
getChildren()
togetStructureChildren()
- renamed
getChildrenSize()
togetStructureChildrenSize()
- renamed
CHILDREN_COLLECTION
toSTRUCTURE_CHILDREN_COLLECTION
-
JpaDetailsProvider
- renamed
getType()
togetStructureType()
- renamed
- renamed
- Refactored
JpaNamedContextModel
- pushed
getType()
down to sub-interfaces and declared explicit return types- added
Generator.getGeneratorType()
- added
Query.getQueryType()
- added
EclipseLinkConverter.getConverterType()
- added
- pushed
isEquivalentTo(JpaNamedContextModel)
down to sub-interfaces- added
Generator.isEquivalentTo(Generator)
- added
Query.isEquivalentTo(Query)
- added
EclipseLinkConverter.isEquivalentTo(EclipseLinkConverter)
- added
- pushed
- Renamed
Converter.getType()
togetConverterType()
and declared explicit return values
- Renamed various intermediate Generator interfaces
- renamed
DbGeneratorAnnotation
toDatabaseGeneratorAnnotation
- renamed
DbGenerator
toDatabaseGenerator
- renamed
JavaDbGenerator
toJavaDatabaseGenerator
- renamed
- Refactored managed type classes
-
ManagedType
- renamed
getType()
togetManagedTypeType()
- renamed
-
XmlManagedType
- renamed
getType()
togetManagedTypeType()
- renamed
-
JavaManagedTypeDefinition
- renamed
getType()
togetManagedTypeType()
- renamed
-
OrmManagedTypeDefinition
- renamed
getContextType()
togetContextManagedTypeType()
- renamed
getResourceType()
togetResourceManagedTypeType()
- renamed
-
JavaManagedTypeUiDefinition
- renamed
getType()
togetManagedTypeType()
- renamed
-
-
XmlPersistenceUnit
- added method
sortClasses()
- added method
- Reworked the API for converting mapping relationship settings so it is more clear what types of objects are converted to and from. Specifically:
- Only ORM specified mapping relationship settings are copied over, when an an ORM attribute mapping is converted to another mapping (In Java, the annotations are simply left in place and rediscovered when the new mapping annotation is added to the source file.):
-
SpecifiedAssociationOverride
- removed method
initializeFrom(AssociationOverride)
- removed method
initializeFromVirtual(AssociationOverride)
- removed method
-
SpecifiedAttributeOverride
- removed method
initializeFrom(AttributeOverride)
- removed method
initializeFromVirtual(AttributeOverride)
- removed method
-
OrmSpecifiedAttributeOverride
- added method
initializeFrom(OrmSpecifiedAttributeOverride)
- added method
-
Relationship
- removed method
initializeOn(SpecifiedRelationship)
- removed method
-
OrmMappingRelationship
- added method
initializeFrom(OrmMappingRelationship)
- added method
initializeOn(OrmMappingRelationship)
- added method
initializeFromJoinColumnRelationship(OrmJoinColumnRelationship)
- added method
initializeFromJoinTableRelationship(OrmJoinTableRelationship)
- added method
initializeFromMappedByRelationship(OrmMappedByRelationship)
- added method
initializeFromPrimaryKeyJoinColumnRelationship(OrmPrimaryKeyJoinColumnRelationship)
- added method
-
OverrideRelationship
- removed method
initializeOnSpecified(SpecifiedOverrideRelationship)
- removed method
-
OrmMappedByRelationship
- added method
getMappedByStrategy()
- added method
-
SpecifiedJoinColumnRelationshipStrategy
- removed method
initializeFrom(JoinColumnRelationshipStrategy)
- removed method
-
OrmSpecifiedJoinColumnRelationshipStrategy
- added method
initializeFrom(OrmSpecifiedJoinColumnRelationshipStrategy)
- added method
-
SpecifiedJoinTableRelationshipStrategy
- removed method
initializeFrom(JoinTableRelationshipStrategy)
- removed method
-
OrmSpecifiedJoinTableRelationshipStrategy
- added method
initializeFrom(OrmSpecifiedJoinTableRelationshipStrategy)
- added method
-
SpecifiedMappedByRelationshipStrategy
- removed method
initializeFrom(SpecifiedMappedByRelationshipStrategy)
- removed method
-
OrmSpecifiedMappedByRelationshipStrategy
- added method
initializeFrom(OrmSpecifiedMappedByRelationshipStrategy)
- added method
-
OrmSpecifiedPrimaryKeyJoinColumnRelationshipStrategy
- added method
initializeFrom(OrmSpecifiedPrimaryKeyJoinColumnRelationshipStrategy)
- added method
-
SpecifiedJoinTable
- removed method
initializeFrom(JoinTable)
- removed method
-
OrmSpecifiedJoinTable
- added method
initializeFrom(OrmSpecifiedJoinTable)
- added method
-
OrmSpecifiedColumn
- added method
initializeFrom(OrmSpecifiedColumn)
- added method
-
SpecifiedJoinColumn
- removed method
initializeFrom(JoinColumn)
- removed method
-
OrmSpecifiedJoinColumn
- added method
initializeFrom(OrmSpecifiedJoinColumn)
- added method
-
OrmSpecifiedPrimaryKeyJoinColumn
- removed method
initializeFrom(PrimaryKeyJoinColumn)
- added method
initializeFrom(OrmSpecifiedPrimaryKeyJoinColumn)
- removed method
-
OrmSpecifiedSecondaryTable
- removed method
initializeFrom(SecondaryTable)
- removed method
-
OrmCollectionTable2_0
- removed method
initializeFrom(CollectionTable2_0)
- added method
initializeFrom(OrmCollectionTable2_0)
- removed method
-
- Virtual Java override relationship settings are copied only to a specified Java overrides (likewise with ORM settings):
-
JavaSpecifiedAssociationOverride
- added method
initializeFrom(JavaVirtualAssociationOverride)
- added method
-
JavaSpecifiedAttributeOverride
- added method
initializeFrom(JavaVirtualAttributeOverride)
- added method
-
OrmSpecifiedAssociationOverride
- added method
initializeFrom(OrmVirtualAssociationOverride)
- added method
-
OrmSpecifiedAttributeOverride
- added method
initializeFrom(OrmVirtualAttributeOverride)
- added method
-
SpecifiedOverrideRelationship
- renamed method
initializeFromVirtual(OverrideRelationship)
toinitializeFrom(VirtualOverrideRelationship)
- removed method
initializeFromVirtualJoinColumnRelationship(JoinColumnRelationship)
- removed method
initializeFromVirtualJoinTableRelationship(JoinTableRelationship)
- renamed method
-
SpecifiedJoinColumnRelationshipStrategy
- renamed method
initializeFromVirtual(JoinColumnRelationshipStrategy)
toinitializeFrom(VirtualJoinColumnRelationshipStrategy)
- renamed method
-
SpecifiedJoinTableRelationshipStrategy
- renamed method
initializeFromVirtual(JoinTableRelationshipStrategy)
toinitializeFrom(VirtualJoinTableRelationshipStrategy)
- renamed method
-
SpecifiedJoinTable
- renamed method
initializeFromVirtual(JoinTable)
toinitializeFrom(VirtualJoinTable)
- renamed method
-
SpecifiedColumn
- added method
initializeFrom(VirtualColumn)
- added method
-
SpecifiedJoinColumn
- renamed method
initializeFromVirtual(JoinColumn)
toinitializeFrom(VirtualJoinColumn)
- renamed method
-
OrmSpecifiedSecondaryTable
- added method
initializeFrom(OrmVirtualSecondaryTable)
- added method
-
OrmSpecifiedPrimaryKeyJoinColumn
- added method
initializeFrom(OrmVirtualPrimaryKeyJoinColumn)
- added method
-
- Only ORM specified mapping relationship settings are copied over, when an an ORM attribute mapping is converted to another mapping (In Java, the annotations are simply left in place and rediscovered when the new mapping annotation is added to the source file.):
- Refactored the API surrounding ordering:
-
XmlOrderable
- changed get/setOrderBy(..) from String to XmlOrderBy (and added XmlOrderBy)
-
Orderable
- removed custom ordering as an option. Custom ordering is now represented as a specified key on
OrderBy
, which is (primary key) by default. - changed set<Foo>Ordering(boolean) to set<Foo>Ordering() (no boolean). There is no way to "unset" ordering other than setting "no" ordering.
- removed custom ordering as an option. Custom ordering is now represented as a specified key on
-
- Refactored Entities/MappedSuperclasses to have common IdTypMapping functionality
- XML resource model
- Added
XmlIdTypeMapping
- Added
- Context model
-
BaseEmbeddedMapping
- added
getTargetEmbeddableName()
- added
-
IdClassReference
- added
ID_CLASS_NAME_PROPERTY
and property change notification for id class name
- added
-
IdTypeMapping
- added
getPrimaryKeyClassName()
- moved from
TypeMapping
:-
Iterable<IdTypeMapping> getInheritanceHierarchy()
(and changed return type) -
isRootEntity()
-
getRootEntity()
-
getInheritanceStrategy()
-
- added
-
PersistenceUnit
- added
getIdTypeMapping(String)
- added
-
PersistentType
- removed
SUPER_PERSISTENT_TYPE_PROPERTY
and property change notification for super persistent type (now delegates to type mapping) - removed
getIdClass()
(instead useIdTypeMapping#getIdClassReference()#getIdClass()
- added
SUPER_TYPE_MAPPING_PROPERTY
and super type mapping property change notification - added
Iterable<IdTypeMapping> getAncestors()
- moved to
IdTypeMapping
:-
getRootEntity()
,isRootEntity()
,getInheritanceStrategy()
-
- added:
getIdAttributeMapping()
- removed
-
- XML resource model
JAXB Core (Provisional API)
-
JaxbProjectManager
- added method
getJaxbWorkspace()
- added method
JAXB UI (Provisional API)
- New interfaces
-
JaxbProjectsModel
-
JaxbProjectModel
-
Reference
This document covers ONLY changes between WTP 3.6 and WTP 3.5. See also:
- New Help for Old Friends VIII (3.5 Kepler)
- New Help for Old Friends VII (3.4 Juno)
- New Help for Old Friends VI (3.3 Indigo)
- New Help for Old Friends V (3.2 Helios)
- New Help for Old Friends IV (3.1 Galileo)
- New Help for Old Friends III (3.0 Ganymede)
- New Help for Old Friends II (2.0 Europa)
- New Help for Old Friends (1.5 Callisto)