Created
March 16, 2011 18:22
-
-
Save olivermt/873003 to your computer and use it in GitHub Desktop.
This file contains 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
List<Outcrop> listTouchedOutcrops(String grossDepEnv, String depEnv = null, String subDepEnv = null, String archiEleType = null, String basinType = null, String climate = null) { | |
def c = Outcrop.createCriteria() | |
def result = c.list { | |
section { | |
eq("grossDepositionalEnvironment", grossDepEnv) | |
depositionalSetting { | |
basinType ? eq("basinType", basinType) : null | |
climate ? eq("paleoClimate", climate) : null | |
} | |
depositionalEnvironment { | |
depEnv ? eq("type", depEnv) : null | |
subEnvironment { | |
subDepEnv ? eq("type", subDepEnv) : null | |
architecturalElement { | |
archiEleType ? eq("type", archiEleType) : null | |
} | |
} | |
} | |
} | |
} | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment