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
Add PostgreSQLCITextType to TypeContributor #445
Comments
I remember some Types were triggering some errors when bootstrapping all of them. Try adding it and run the tests or run it locally on your project and see if it works. |
I had written my own TypeContributor before using public class NoviTypeContributor implements TypeContributor {
@Override
public void contribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry) {
contributeType(typeContributions, PostgreSQLCITextType.INSTANCE);
}
//
// copied from https://github.com/vladmihalcea/hibernate-types HibernateTypesContributor
//
private void contributeType(TypeContributions typeContributions, BasicType type) {
typeContributions.contributeType(type);
}
private void contributeType(TypeContributions typeContributions, UserType type) {
if (type instanceof ImmutableType immutableType) {
typeContributions.contributeType(immutableType, immutableType.getName());
} else {
typeContributions.contributeType(type, type.getClass().getSimpleName());
}
}
} |
I should also mention I am using hibernate-types-55 |
I'll try to add it when I have some time and see if the tests pass. |
@efrench-novi i would like to email you. would you mind help me to resolve some configuration issues. your assistance would be helpful. we could connect via twitter or instagram. |
Fixed for Hibernate 5 and 4 modules. The Hibernate 6 module fails if the |
I like the addition of the builtin TypeContributor, but I noticed the PostgreSQLCITextType type was not added. Not sure if it was for a specific reason or an oversight.
The text was updated successfully, but these errors were encountered: