Created
January 4, 2015 00:28
-
-
Save sergiopvilar/d0a0ac4b19d6c9e0b379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.scrumplus.bo.entity | |
import com.scrumplus.core.framework.crud.{CRUD, BaseCRUD} | |
import com.scrumplus.core.framework.exception.{ErrorCode, ValidationException} | |
import com.scrumplus.core.util.PasswordUtil | |
import com.scrumplus.entity.User | |
/** | |
* @project simple-heroku-webapp | |
* @author sergiovilar | |
* @date: 12/22/14 | |
*/ | |
class UserBO extends CRUD[User](classOf[User]){ | |
override def save(t: User): User = { | |
if(t.password != "") | |
t.password = PasswordUtil.hash(t.password) | |
return super.save(t) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment