HQL Insert Query in Grails
- by WaZ
I want to write an insert query in Grails. I have tried all possible combinations but cant get the syntax correct. Can anybody please help?
class Person {
int age
int name
}
i tried the following:
Person.executeUpdate("insert into Person values (20,30)")
p.s.:Please do not mention using save()