grails-MappingException: Could not determine Type

在用grails的时候遇到这个问题,反复调试了很久,没有进展,同时敲了几个命令后好了,真纠结,这是框架的问题吗?

问题:

Caused by MappingException: Could not determine type for: com.zhiren.mixcoal.mixbase.Lborg, at table: yibmzxx, for columns: [org.hibernate.mapping.Column(mixunit)]

清理项目:clean

编译项目:compile

反复几次命令之后项目就不报错了,在网上找了资料,最贴切的是:http://stackoverflow.com/questions/21103804/mappingexception-could-not-determine-type

原文地址:https://www.cnblogs.com/smallrock/p/3670100.html