app/services/IdGeneration.scala (4 lines of code) (raw):

package services object IdGeneration { def nextId = java.util.UUID.randomUUID().toString }