I've had success using Slick, an ORM-ish Scala library, to abstract away this tedious concatenation in app code.