Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created March 29, 2011 16:58
Show Gist options
  • Select an option

  • Save coderberry/892748 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/892748 to your computer and use it in GitHub Desktop.
BlogPost1.groovy
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