Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class user {
- static hasMany = [group:Team]
- }
- class StudentProfile extends User {
- static hasMany = [lessons: Lesson]
- }
- Class Lesson {
- static belongsTo=[ student: StudentProfile]
- }
- def listGroup = Lesson.createCriteria().list{
- projections {
- student{groupProperty('group')}}
- count()
- avg('scale')
- }
- [sectionExec:sectionExec]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement