From 1117436090f7ebbf0a9038ecb857c607c7e81b2a Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 4 Jan 2023 18:06:05 +0100 Subject: [PATCH] Update hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java Co-authored-by: Steve Ebersole --- .../java/org/hibernate/boot/model/FunctionContributor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java b/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java index 7f9c79be94..3842f7ce3a 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java @@ -47,6 +47,10 @@ public interface FunctionContributor { *

* The range 0-500 is reserved for Hibernate, range 500-1000 for libraries and * 1000-Integer.MAX_VALUE for user-defined FunctionContributors. + *

+ * Contributions from higher precedence contributors (higher numbers) effectively override + * contributions from lower precedence. E.g. if a contributor with precedence 1000 contributes a + * function named {@code "max"}, that will override Hibernate's standard function of that name. * * @return the ordinal for this FunctionContributor */