Created
June 18, 2013 14:47
-
-
Save kouzouigh/5805974 to your computer and use it in GitHub Desktop.
Mapping one to many without join table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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