Skip to content
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

Register the PostgreSQLGuavaRangeType only if Guava Range is available on the classpath #421

Closed
vladmihalcea opened this issue Apr 10, 2022 · 1 comment
Assignees
Milestone

Comments

@vladmihalcea
Copy link
Owner

The HibernateTypesContributor tries to register the PostgreSQLGuavaRangeType, but if the com.google.common.collect.Range is not found, a NoClassDefFoundError is thrown:

java.lang.NoClassDefFoundError: com/google/common/collect/Range

	at com.vladmihalcea.hibernate.type.range.guava.PostgreSQLGuavaRangeType.<clinit>(PostgreSQLGuavaRangeType.java:58)
	at com.vladmihalcea.hibernate.type.HibernateTypesContributor.contribute(HibernateTypesContributor.java:66)
	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:376)
	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:142)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1350)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1421)
@vladmihalcea vladmihalcea added this to the 2.15.2 milestone Apr 10, 2022
@vladmihalcea vladmihalcea self-assigned this Apr 10, 2022
@vladmihalcea
Copy link
Owner Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant