for example:class
Book {
static mapping = {
batchSize 10
}
}
could be:
@Configration(batchSize=10)
class Book {
...
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The main reason is that Grails was developed for Groovy 1.1 which didn’t support annotations. I guess one of the next versions will support annotations but as alamar said, annotations can’t be changed at runtime. Therefore, the current approach is more flexible.