简体   繁体   English

休眠+ Grails错误和问题

[英]hibernate + grails error and question

I just changed all of the classes in my grails project to a new package. 我只是将grails项目中的所有类都更改为一个新包。 This involved adding the package syntax, and creating the folder structure accordingly. 这涉及添加包语法,并相应地创建文件夹结构。 Now I am getting the following hibernate.MappingException: 现在我得到以下hibernate.MappingException:

2010-09-23 15:31:16,755 [main] ERROR [localhost].[/SkillsDB]  - Exception sending context initialized event to listener instance of class org.codehaus.groovy.gr
ails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.s
pringframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while
setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto
ry': Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: skillsdb.Client, at table: project, for
 columns: [org.hibernate.mapping.Column(client)]

Is this something to do with my package changing? 这和我的包裹有变化吗? How do I resolve this? 我该如何解决? I literally changed nothing in the project except the package of my domain classes. 除了领域类的包,我在项目中什么都没做。

Could not determine type for: skillsdb.Client

似乎找不到此对象,您将需要提供更多信息以获得更具体的响应

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM