Groovy web console

subscribe to the feed Subscribe
to this
site
Untitled (via #groovywebconsole)
tweet this snippet Tweet
this
script

Untitled

Published 5 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Test {
    int id
    String name
}
Test t1 = new Test(id: 1, name: 'test')
Expando t2 = t1.properties
println t2
t2.isChecked = true
println t2