Hi Team when i am upgrading hibernate 6.x version i am getting different different issues in every version
In 6.1.7 Final
Error :- 'class org.hibernate.metamodel.mapping.internal.EmbeddedForeignKeyDescriptor cannot be cast to class org.hibernate.metamodel.mapping.internal.SimpleForeignKeyDescriptor (org.hibernate.metamodel.mapping.internal.EmbeddedForeignKeyDescriptor and org.hibernate.metamodel.mapping.internal.SimpleForeignKeyDescriptor.
In **6.2.7 Final **
Error :- class org.hibernate.mapping.BasicValue cannot be cast to class org.hibernate.mapping.ToOne (org.hibernate.mapping.BasicValue and org.hibernate.mapping.ToOne are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @522ba524))
**In 6.3.1 Final**
Caused by: java.lang.NoClassDefFoundError: org/hibernate/type/descriptor/converter/spi/EnumValueConverter
[INFO] [talledLocalContainer] at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3373)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.getConstructor0(Class.java:3578)
[INFO] [talledLocalContainer] at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2754)
[INFO] [talledLocalContainer] at org.hibernate.internal.util.ReflectHelper.getConstructor(ReflectHelper.java:350)
[INFO] [talledLocalContainer] at org.hibernate.boot.model.TypeBeanInstanceProducer.produceBeanInstance(TypeBeanInstanceProducer.java:34)
[INFO] [talledLocalContainer] at org.hibernate.boot.model.TypeBeanInstanceProducer.produceBeanInstance(TypeBeanInstanceProducer.java:53)
[INFO] [talledLocalContainer] at org.springframework.orm.hibernate5.SpringBeanContainer.createBean(SpringBeanContainer.java:208)
[INFO] [talledLocalContainer] at org.springframework.orm.hibernate5.SpringBeanContainer.getBean(SpringBeanContainer.java:124)
[INFO] [talledLocalContainer] at org.hibernate.resource.beans.internal.ManagedBeanRegistryImpl.getBean(ManagedBeanRegistryImpl.java:110)
[INFO] [talledLocalContainer] at org.hibernate.mapping.BasicValue.setExplicitCustomType(BasicValue.java:825)
[INFO] [talledLocalContainer] at org.hibernate.cfg.annotations.BasicValueBinder.fillSimpleValue(BasicValueBinder.java:1238)
[INFO] [talledLocalContainer] at org.hibernate.cfg.SetBasicValueTypeSecondPass.doSecondPass(SetBasicValueTypeSecondPass.java:26)
Wandering for solution
Thanks