springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean instantiation via constructororg.springframework.beans.BeanInstantiationException: Failed to i
nstantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor</e
javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister 这是整个堆栈跟踪 2021:
: Could not getconstructor for org.hibernate. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues: Could not getconstructor for o
控制台显示以下错误:28 Jan, 2010 11:35:57 AM org.apache.catalina.core.ApplicationContextError creating bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingExcep
: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues: Could not getconstructor for org.hibern
{ net = value; }
boolean isNet() { return true; }我将isNet注释为@瞬态,以解决歧义,并告诉JPA使用get: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.hibernate.persister.internal.PersisterFactoryImpl.createEnti
: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean: Could not getconstructor for org.hibernate.persister.en
AppCf/spring-application-context-datasource.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.springframework.beans.fa
: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean: Could not getconstructor for org.hibernate.persister.en
: Could not getconstructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod: Could not getconstructor for org.hibernate.persister.entity
(messageSource, Locale.ENGLISH); }
public String getorg.hibernate.MappingException: Could not determine type for: com.company.currencyservice.Messages, at