fltxiaotaoer 2016-06-01 09:56 采纳率: 100%
浏览 1106
已采纳

Grails组合键报错 no generator CompositeIdentity

问一个组合键的问题, 类定义是这样的:
class A{
String id
static hasMany = [b: B]
}
class B implements Serializable {
def A a1
def A a2
static belongsTo = [a1: A, a2: A]
static hasMany = [a1: A, a2: A]
static mapping = {
id composite: ['a1','a2']
}

equals和hashCode方法...

}

问题是: 报错 No such property: generator for class: org.codehaus.groovy.grails.orm.hibernate.cfg.CompositeIdentity,
怎么办?

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 如何抓这个函数的包wx.updateShareMenu
      • ¥15 需要数据分析!时间紧!
      • ¥15 关于免费论文查重系统的问题。
      • ¥15 朋友们,这个sim函数是出了什么问题了呢
      • ¥15 【MRT数据导入问题】MRT处理modis数据提示opening input header file怎么解决?
      • ¥15 嵌入式系统综合设计题有会的教一下嘛?
      • ¥15 yolov5转onnx验证出错
      • ¥15 proteus仿真LCD不点亮
      • ¥15 C语言红绿灯时间问题
      • ¥15 matlab仿真实现定位算法