[hibernate/hibernate-validator] 34844c: HV-1080 Simplifying retrieval of cascaded values;
by GitHub
Branch: refs/heads/5.3
Home: https://github.com/hibernate/hibernate-validator
Commit: 34844cdfaee51be504eb565a0ae6a9e2847b97e9
https://github.com/hibernate/hibernate-validator/commit/34844cdfaee51be50...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
Log Message:
-----------
HV-1080 Simplifying retrieval of cascaded values;
* No instanceof check needed anymore
* No repeated setAccessible() calls
* No need to expose getCascadedMember() on PropertyMetadata
Commit: 9de1ab4e75b3a98f68d9e17d67fb4c33e9ebd6c6
https://github.com/hibernate/hibernate-validator/commit/9de1ab4e75b3a98f6...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
A engine/src/test/java/org/hibernate/validator/test/internal/engine/valuehandling/CascadedOptionalTest.java
Log Message:
-----------
HV-1080 Making sure that the correct type is used for unwrapper resolution;
When determining the unwrapper for a cascadable property, it wasn't determined
which type (the one from the field or the getter) would be used. Mostly that
doesn't matter, but it makes a difference if the field is a "normal" type and
the getter is an Optional<T> of this type. Now always the type of the cascadable
member (marked with @Valid) is used.
Compare: https://github.com/hibernate/hibernate-validator/compare/deb8f5eb1721...9...
8 years, 2 months
[hibernate/hibernate-validator] 4a4e02: HV-1080 Simplifying retrieval of cascaded values;
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-validator
Commit: 4a4e02daeca4bd7d89ab364f1faf5da697fb40c7
https://github.com/hibernate/hibernate-validator/commit/4a4e02daeca4bd7d8...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
Log Message:
-----------
HV-1080 Simplifying retrieval of cascaded values;
* No instanceof check needed anymore
* No repeated setAccessible() calls
* No need to expose getCascadedMember() on PropertyMetadata
Commit: 3a9dbc073ecd71db339917e76b36218a2f186589
https://github.com/hibernate/hibernate-validator/commit/3a9dbc073ecd71db3...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
A engine/src/test/java/org/hibernate/validator/test/internal/engine/valuehandling/CascadedOptionalTest.java
Log Message:
-----------
HV-1080 Making sure that the correct type is used for unwrapper resolution;
When determining the unwrapper for a cascadable property, it wasn't determined
which type (the one from the field or the getter) would be used. Mostly that
doesn't matter, but it makes a difference if the field is a "normal" type and
the getter is an Optional<T> of this type. Now always the type of the cascadable
member (marked with @Valid) is used.
Compare: https://github.com/hibernate/hibernate-validator/compare/13e8edb1c8f4...3...
8 years, 2 months