use java.util.UUID in routes file. use routes package for generating urls in views.