我有一个将PDF报告保存到Oracle数据库。 报告的dataType是一个byteArray。Groovy域映射
的域定义如下:
static constraints = {
report(nullable:false)
company(nullable:false)
month(nullable:false)
}
byte[] report
Company company
Date month
}
可惜,这定义了在Oracle数据库具有RAW DATA_TYPE和255
应如何lenghth场 我将该字段定义为域类? 应该定义为BLOB?
如果是,如何做到这一点?
在此先感谢。