Hibernate 7 and NoClassDefFoundError on BindableType

Hi,

I make some tests with Hibernate 7 and I have a NoClassDefFoundError: NoClassDefFoundError: org/hibernate/query/BindableType

On migration guide (7.0 Migration Guide) , I found :
Incubating interfaces BindableType, OutputableType, and BindingContext were moved to org.hibernate.type

But I can’t find org.hibernate.type

Regards

Not sure what the problem is on your end, but here you can see the file being there in the Git repository: hibernate-orm/hibernate-core/src/main/java/org/hibernate/type/BindableType.java at 7.0 · hibernate/hibernate-orm · GitHub

Maybe clear your local caches?

have similar issue when i call @Query native, the difference in package : org.hibernate.query.BindableType but in git package is org.hibernate.type.BindableType
org.hibernate.query
org.hibernate.type

I don’t know what this @Query annotation does, but maybe you compiled against an old version of Hibernate ORM?