我使用域类找到时,有一个问题:的参数没有指定值 - Grails的
我得到的错误是: ERROR util.JDBCExceptionReporter - No value specified for parameter 2
域名类:
class AppDetail {
String name
String url
Boolean active
static hasMany = [authString:AppIdentifier]
static constraints = {
name(unique:true,blank:false)
active(nullable:true)
}
class AppIdentifier {
Date added
String authString
static belongsTo = [authString:AppDetail]
static constraints = {
added()
authString(blank:false)
}
的找到是:
def identifier = AppIdentifer.findByAuthString('test')
def appDetails = AppDetail.findByAuthString(identifier)
任何人都可以亲提供任何洞察这个错误的含义?
在此先感谢!