Support @Value meta-annotations and expose MergedAnnotations on PreferredConstructor parameters.
We now support composed annotation that are annotated with `@Value`. we also expose MergedAnnotations through PreferredConstructor.Parameter for further use by store modules that want to inspect constructor argument annotations.
Closes: #2332
Original Pull Request: #2333
pull/2344/head
Mark Paluch5 years agocommitted byChristoph Strobl
@ -175,6 +176,7 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@@ -175,6 +176,7 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
privatefinal@NullableStringname;
privatefinalTypeInformation<T>type;
privatefinalMergedAnnotationsannotations;
privatefinalStringkey;
privatefinal@NullablePersistentEntity<T,P>entity;
@ -199,7 +201,8 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@@ -199,7 +201,8 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@ -216,12 +219,12 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@@ -216,12 +219,12 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@ -243,6 +246,16 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {
@@ -243,6 +246,16 @@ public class PreferredConstructor<T, P extends PersistentProperty<P>> {