Skip to content

Instantly share code, notes, and snippets.

@peel
Created October 27, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peel/f5b3e1f5780b12c37dbc to your computer and use it in GitHub Desktop.
Save peel/f5b3e1f5780b12c37dbc to your computer and use it in GitHub Desktop.
implicit location conversion
implicit def newLocationToLocation(l: NewLocation):Location={
val id:Int = 1 //sql"select s_id.nextval from dual".execute
new Location(id,l.name,l.serverId,s"${l.directory}/${l.regexp}",l.directory,l.quartzPattern,l.triggerBy,l.disabled,l.ftpConnectionMode,l.dataTransferMode,l.preSite,l.postSite,l.transferBy,l.wasModified,l.filterOutTransferred)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment