Spring boot Java Hibernate逆向工程错误

Spring boot Java Hibernate逆向工程错误,spring-boot,hibernate,jpa,Spring Boot,Hibernate,Jpa,在使用hibernate jboss工具生成实体后,我在执行我的应用程序时出现了很多错误,如: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaC

在使用hibernate jboss工具生成实体后,我在执行我的应用程序时出现了很多错误,如:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not instantiate persister org.hibernate.persister.entity.SingleTableEntityPersister
&
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not instantiate persister org.hibernate.persister.entity.SingleTableEntityPersister
&
Caused by: org.hibernate.MappingException: Could not instantiate persister org.hibernate.persister.entity.SingleTableEntityPersister
&
Caused by: java.lang.ClassCastException: class org.hibernate.type.StringType cannot be cast to class org.hibernate.type.VersionType (org.hibernate.type.StringType and org.hibernate.type.VersionType are in unnamed module of loader 'app')