HQL Insert Query in Grails
Posted
by WaZ
on Stack Overflow
See other posts from Stack Overflow
or by WaZ
Published on 2010-04-29T16:37:21Z
Indexed on
2010/04/30
0:17 UTC
Read the original article
Hit count: 295
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()
© Stack Overflow or respective owner