hibernate排错

INFO org.springframework.context.support.PropertySourcesPlaceholderConfigurer (172) - Loading properties file from class path resource [config.properties]
ERROR com.alibaba.druid.pool.DruidAbstractDataSource (873) - maxIdle is deprecated
INFO org.hibernate.annotations.common.Version (66) - HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
INFO org.hibernate.Version (54) - HHH000412: Hibernate Core {4.3.6.Final}
INFO org.hibernate.cfg.Environment (239) - HHH000206: hibernate.properties not found
INFO org.hibernate.cfg.Environment (346) - HHH000021: Bytecode provider name : javassist
INFO com.alibaba.druid.pool.DruidDataSource (450) - {dataSource-1} inited
INFO org.hibernate.dialect.Dialect (145) - HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
INFO org.hibernate.engine.transaction.internal.TransactionFactoryInitiator (62) - HHH000399: Using default transaction strategy (direct JDBC transactions)
INFO org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory (47) - HHH000397: Using ASTQueryTranslatorFactory
INFO org.hibernate.validator.internal.util.Version (27) - HV000001: Hibernate Validator 5.1.3.Final
WARN org.springframework.beans.factory.support.DefaultListableBeanFactory (1427) - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zoneDAO' defined in file [ xxx   ZoneDAO.class]: Cannot create inner bean '(inner bean)#7bbeab41' of type [xxx .dao.HibernateSQLHandler] while setting bean property 'proxy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7bbeab41#14': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory cn.com.paic.pacloud.common.dao.HibernateSQLHandler.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
INFO org.hibernate.dialect.Dialect (145) - HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect

 

 

 

这个错误有可能是字段未标识@Transient导致

转载于:https://my.oschina.net/u/217398/blog/701518

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值