-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HHH-19247 Add ordinal() to TypeContributor #9865
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I would say this change makes sense. I've left a couple comments regarding the new interface you created an some unnecessary whitespace changes that we could avoid.
hibernate-core/src/main/java/org/hibernate/boot/model/Ordinated.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kad-barens much better. Only one last whitespace change to revert.
Lastly, we implement improvements like this on the main
branch, not on current stable versions, so please switch this PR to that and squash all change to a single commit please.
hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java
Outdated
Show resolved
Hide resolved
…uence the order in which serviceloaded custom types are registered
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
Looks like changing the base doesn't work nicely on the GitHub web UI. Can you please cherry-pick this commit on top of the |
I noticed that too, I'm already working on a new PR |
The FunctionContributor already has an ordinal() method to be able to influence the order in which function contributions are loaded.
The same mechanism would be helpful for Type contributions.
In our specific use case we need to override the SDOGeometryType, contributed by Hibernate Spatial, with our own custom type, for handling complex arcs.
In Hibernate 5 this worked well with a custom dialect, but with Hibernate 6 it is not possible anymore to override previously added types during service loading by changing the order in which they are loaded.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-19247