Groovy
dean123363
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《Groovy入门经典》笔记
[b]第4章 列表、映射和范围[/b] 在映射字面值中,如果某个元素的关键字是一个变量名,那么它将被解释成一个String值。 在下面的范例中: [code="groovy"] def x = 1 def y = 2 def m = [x :y, y : x] [/code] 于是,m就是映射: [code="groovy"] m = ['x' : 2, 'y' : 1] ...原创 2012-12-22 01:41:12 · 185 阅读 · 0 评论 -
Groovy学习笔记
[b]1.关于object.name的行为[/b] In Groovy, everything starts with the GroovyObject interface, which, like all the other classes we’ve mentioned, is declared in the package groovy.lang. It looks like this...原创 2012-12-29 00:28:22 · 120 阅读 · 0 评论 -
Grails学习笔记之GORM
1.关联查询 假设有以下领域对象: [code="groovy"] class Account{ Transaction transaction Date created } class Transaction{ Date date } [/code] [code="groovy"] def c = Account.createCriteria() def no...原创 2013-01-10 02:00:47 · 259 阅读 · 0 评论
分享