As of Grails 1.3 the Category domain class collides with with a new groovy.lang.Category. To make the application work you have three choices rename the Category to something else like CategoryItem, put Category into a package or rename it Group which would require a mapping since Group is a reserved word in SQL.
It is really more of a Java namespace issue than a Grails or Groovy issue. Since the Category class was introduced in Groovy 1.6 into the groovy.lang package which is implicitly imported in Groovy causing the ambiguity and in this case the JVM class loader will find groovy.lang.Category first. The concept of Java packages was created to prevent this. This points out putting domain classes into a package should be considered a best practice.
分享到:
相关推荐
Apress.Beginning.Groovy.and.Grails.From.Novice.to.Professional.2008英文原版
Written by core members of the Groovy language team, this book presents Groovy like no other can—from the inside out. With relevant examples, careful explanations of Groovy's key concepts and ...
Groovy.for.Domain.Specific.Languages.pdf
Packtpub.Groovy.for.Domain.Specific.Languages.Jun.2010.rar
Start building powerful apps that take advantage of the dynamic scripting capabilities of the Groovy language, including what's new in Groovy version 3.0. This book covers Groovy fundamentals, such as...
实战groovy.rar
Manning.Groovy.in.Action.Jan.2007.
Manning.Groovy.in.Action.Jan.2007.pdf
groovy eclipse plugin 2.9.0 ,groovy eclipse 插件 2.9.0
groovy.part2.rar
Groovy make java dynamic and Grails make web application more easy to produce
groovy.part3.rar groovy 1.5
org.codehaus.groovy.eclipse (1.0.1).zip groovy的eclipse插件
english_Manning.Groovy.in.Action-p694.rar。Groovy英文学习资料。
带有groovy.util.AntBuilder预初始化ant变量 为Maven重构的项目 为TeamCity 2017+进行编译和测试 截屏 变数 ant :groovy蚂蚁生成器(类型groovy.util.AntBuilder ) env :环境变量( Map类型) system :系统...
MyVo Generate POJOs.groovy生成实体类文件
Groovy in Action Groovy实战 英文第2版 Groovy in Action Groovy实战 英文第2版
csdn这样自己涨积分真麻烦,居然要50积分,我自己都下不起了好么,,调整为5个积分 ---------------2020-11-13----------- jdk版本高于9时,groovy无法正常使用,需要将此jar包加入项目中,即可正常打开.
为11种语言做有用事情的代码片段:C、C++、Groovy.zip