All notable changes to this project will be documented in this file.
- Fixes an issue that was preventing the transformation of Object type fields
- Updated
hibernate-validator
version to7.0.0.Final
(was6.1.5.Final
).
- Provides new utilities methods
- Removes the deprecated method:
setDefaultValueSetEnabled
- Deprecates the method:
setDefaultValueSetEnabled
and replaces it with:setDefaultValueForMissingPrimitiveField
- Updated
hibernate-validator
version to6.1.5.Final
(was6.1.4.Final
).
- Implemented transformation of JavaBeans using custom Builder pattern (see: Issue 144).
- Updated
hibernate-validator
version to6.1.3.Final
(was6.1.2.Final
).
- Updated
hotels-oss-parent
version to5.0.0
(was4.2.0
). - Updated
commons-lang3
version to3.10
(was3.9
).
- Testing dependencies update
- Implemented Wildcards types support (see: Issue 111).
- Implemented transformation of a field declared with its interface.
- Added method for retrieving the class getter methods.
- Added retry mechanism on the Bean injection in case the parameter names are not available in the compiled code.
- Modified Travis configuration in order to test the compatibility with other JDKs versions
- Aligned
jdk8
version to thejdk11
one
- Removed warning leg message in case the constructor parameter names are not available in the compiled code.
- Removed
slf4j-api
dependency from the library jar.
- Added specific exception message in case the constructor invoke fails due to missing parameter name in the compiled code.
- Updated
hotels-oss-parent
version to4.2.0
(was4.1.0
).
- Removed deprecated module
bean-utils-library
, the new one is:bean-bean-transformer
- The following deprecated classes has been removed:
com.expediagroup.beans.model.FieldMapping
com.expediagroup.beans.model.FieldTransformer
com.expediagroup.beans.Transformer
- New specific exception in case the Field Transformation function defined is not valid
- Implemented a new functionality that allows to transform also Map object applying transformation function and mappings
Transformer
class previously in charge of the Java Bean transformation has been moved toBeanTransformer
- Updated
hotels-oss-parent
version to4.2.0
(was4.1.0
). - Updated
hibernate-validator
version to6.1.0.Final
(was6.0.17.Final
).
-
The module
bean-utils-library
has been deprecated and will be no longer available since version1.1.25
, usebull-bean-transformer
instead.<dependency> <groupId>com.expediagroup.beans</groupId> <artifactId>bull-bean-transformer</artifactId> <version>x.y.z</version> </dependency>
-
Module
bean-utils-library
has been relocated intobull-bean-transformer
. -
The following classes has been deprecated, please find below the complete list and the new one to be used:
Deprecated New one com.expediagroup.beans.model.FieldMapping
FieldMapping
com.expediagroup.beans.model.FieldTransformer
FieldTransformer
com.expediagroup.beans.Transformer
Transformer
- Implemented automatic conversion of basic types (see: Issue 61).
- Modified Transformer initialization in order to create a
Validator
instance only if the validation is enabled - Modified Transformer initialization in order to create a
ConversionAnalyzer
instance only if the automatic conversion is enabled
- Implemented possibility to disable the default value set for primitive types in case its value is null (see: Issue 73).
- Improved exception messages in order to provide more details (see: Issue 70).
- Added possibility to define transformer function without arguments if not needed (see: Issue 62).
- Added new maven profile:
check-for-updates
for checking if any dependency can be updated (see: Issue 68). - Added check during project build in order to prevent the add different versions of the same dependency.
- Fixed a bug: FieldTransformer was receiving a default value instead of the source bean one (see: Issue 64).
- Made the project multi module
- Removed deprecated method:
setValidationDisabled
- Testing dependencies update
- Modified project behaviour: since this version the "Bean Validation" is disabled by default, to enable it, the following instruction needs to be executed:
transformer.setValidationEnabled(true);
- Modified project structure in order to offer Java Bean validation feature against the defined constraints as public feature (see: Issue 57).
- Modified value retrieval/set from/to source/destination object in order to minimise the executed actions
- Updated
hotels-oss-parent
version to4.0.1
(was4.0.0
).
- Added support for the transformation of Java Beans built through Builder
- Improved optional usage.
- Fixed bug that was preventing the transformer function to return a null value (see: Issue 52).
- Implemented possibility to use static transformation with a given transformer (see: Issue 44).
- Improved field value retrieval function.
- Added caching for method:
getDeclaredField
- Implemented a new feature that allows to skip the transformation for a given set of fields (see: Issue 38)
- Performance improvement
- Testing dependencies update
- Implemented a new feature that allows the copy on an existing object instance (see: Issue 24) for project compiled with
jdk
8. - Added profile:
fast
that skips the following plugin execution:javadoc
,checkstyle
,pmd
andjacoco
- Added all new features into the java 8 project version.
- Added possibility to apply a transformation function only on a specific field (see: Issue 27).
- Added possibility to apply a transformation function on all fields matching with the given name without evaluating the full field path.
- Added samples and tests for the above functionality
- Fixed issue that was preventing the
Set
transformation
- Added static transformation functionality (see: Issue 25).
- Made the field name mapping more flexible adding the possibility to map destination object field with field contained into nested objects.
- Added samples and tests for the above functionality.
- Updated hibernate dependency:
org.hibernate.validator
(wasorg.hibernate.validator
). - Removed
parallel
execution where not needed because this could cause performance degradation.
- Improved exception messaging in order to simplify the troubleshooting process
- Improved readme file
- Added dependency to:
slf4j-api
as no longer available from Spring.
- Added ValidationUtils class for raising an
IllegalArgumentException
in case any parameter is null.
- Removed dependency:
spring-boot-starter-validation
and imported one by one the required validation dependencies - Removed dependency:
spring-boot-starter-cache
and imported one by one the required validation dependencies
- Improved package-info comments
- Configured Travis in order to automatically release artifacts
- Updated
spring-boot
version to2.1.2.RELEASE
(was2.1.0.RELEASE
). - Updated
hotels-oss-parent
version to4.0.0
(was2.3.5
).
- Configured Travis in order to automatically build the application, perform a quality check and publish site. Travis build site available here
- Added build, test coverage and security badge to readme file.
- Added GitHub site build with maven.
- Added possibility to configure the transformer in order to set the default value for all destination's object fields that are not existing in the source object. See README.md for more details.
- Jumped to version
1.0.14
in order to be consequent to the previous library version hosted on a private repo.
- Added changelog file.
- Removed not needed comments
- Added maven build info to the readme file.
- First
BULL
release.