BetaDesigns( Blog ) Flex and Component Development

26Oct/120

PlayFramework 2.0, MongoDB and UniqueField Validation

I could not find much information on making sure a field on a mongdb document was unique when validating a playform so here is some quick code that does the job.

Im using Play-Salat to do the lookup but you could just as easily do the lookup directly.

Be Sociable, Share!
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.