Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created March 18, 2009 16:05
Show Gist options
  • Save timperrett/81220 to your computer and use it in GitHub Desktop.
Save timperrett/81220 to your computer and use it in GitHub Desktop.
def buildSetStringValue(accessor : Method, columnName : String): (T, String) => Unit = (inst, v) => doField(inst, accessor, {case f: MappedText[T] =>
val toSet = v match {
case null => null
case other => other
}
f.data() = toSet
f.orgData() = toSet
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment