Update hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java

Co-authored-by: Steve Ebersole <steve@hibernate.org>
This commit is contained in:
Gavin King 2023-01-04 18:06:05 +01:00
parent ecf4d30c50
commit 1117436090
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ public interface FunctionContributor {
* <p> * <p>
* The range 0-500 is reserved for Hibernate, range 500-1000 for libraries and * The range 0-500 is reserved for Hibernate, range 500-1000 for libraries and
* 1000-Integer.MAX_VALUE for user-defined FunctionContributors. * 1000-Integer.MAX_VALUE for user-defined FunctionContributors.
* <p>
* 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 * @return the ordinal for this FunctionContributor
*/ */