Created
March 29, 2011 16:58
-
-
Save coderberry/892748 to your computer and use it in GitHub Desktop.
BlogPost1.groovy
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 Lead { | |
| static hasMany = [ submissions: Submission ] | |
| Date dateCreated | |
| // ... | |
| } | |
| class Submission { | |
| static belongsTo = [ lead: Lead ] | |
| static hasMany = [ buyerLogs: BuyerLog ] | |
| Lead lead | |
| // ... | |
| } | |
| class BuyerLog { | |
| static belongsTo = [ submission: Submission ] | |
| Submission submission | |
| String leadBuyer | |
| // ... | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment