在为域类生成控制器和视图时:
class Book {
static constraints = {
bookId blank:false
bookTitle blank:false
}
private int bookId
private String bookTitle
private String author
private double price
private Date edition
private String publisher
}
给出错误说:无法将 int 字段 lms.Book.bookId 设置为 java.lang.Class