I use spring-boot-starter-data-jpa,and i want to register a custom BasicType in Hibernate.
According to the hibernate documentation,i need org.hibernate.cfg.Configuration object to register.
configuration.registerTypeContributor( (typeContributions, serviceRegistry) -> {
typeContributions.contributeType( BitSetType.INSTANCE );
} );
But in spring-boot I don't know how to get org.hibernate.cfg.Configuration.
Does anyone know how to do it?