Grails 1.1 对象关联映射 (GORM) - 多态性查询

继承的结果是你有能力进行多态查询。比如,在Content 使用 list 方法,超类将返回所有Content子类:def content = Content.list() // list all blog entries, books and pod casts content = Content.findAllByAuthor('Joe Bloggs') // find all by author def podCasts = PodCast.list() // list only pod casts