I hereby claim:
- I am rogerschlachter on github.
- I am rogerschlachter (https://keybase.io/rogerschlachter) on keybase.
- I have a public key ASAg9F7sfDdEnaNc_JRolR2cFNNIlRcst_B8jYSTYeBArgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
PersonMarketPolygon findOrCreate(Polygon polygon, Person person, Market market, UsageType polygonType) { | |
PersonMarket polygonMarket = PersonMarket.findOrCreateByPersonAndMarket(person, market) | |
//This doesn't work | |
// PersonMarketPolygon existingMatch = PersonMarketPolygon.find { | |
// polygonFilter == polygon | |
// personMarket == polygonMarket | |
// usageType == polygonType | |
// } | |
//This works |
class Foo { | |
Bar topBar //want to keep a reference to a specific instance of bar on this foo | |
//has many bars, but is not explicitly called out as concern was about loading all bars, | |
//but I thought these were lazy by default... | |
} | |
class Bar { |
// Have two Grails domain objects. ObjectB has an ObjectA but ObjectA knows nothing about ObjectB. | |
// Being told for some reason it needs to stay that way... | |
// no hasMany relationship with ObjectB | |
class ObjectA { | |
String name | |
LocalDate date | |
} | |
//So this table has a FK constraint on ObjectA.id. |
buildscript { | |
ext { | |
grailsVersion = project.grailsVersion | |
} | |
repositories { | |
mavenLocal() | |
maven { url "https://repo.grails.org/grails/core" } | |
} | |
dependencies { | |
classpath "org.grails:grails-gradle-plugin:$grailsVersion" |