Skip to content

Instantly share code, notes, and snippets.

@kouzouigh
Created June 18, 2013 14:47
Show Gist options
  • Save kouzouigh/5805974 to your computer and use it in GitHub Desktop.
Save kouzouigh/5805974 to your computer and use it in GitHub Desktop.
Mapping one to many without join table.
class Consultant {
static hasMany = [activities: Activity]
}
class Activity {
static belongsTo = [consultant: Consultant]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment