Person.groovy
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:1k
- /**
- * Person for user account
- * @author
- */
- class Person {
- static transients = ["pass"]
- static hasMany=[authorities:Authority]
- static belongsTo = Authority
- Staff staff
- /** Username */
- String username
- /** User Real Name*/
- String userRealName
- /** MD5 Password */
- String passwd
- /** enabled */
- boolean enabled = false
- String email
- boolean email_show = false
- /** description */
- String description=""
- /** plain password to create a MD5 password */
- String pass="[secret]"
- static def constraints = {
- staff(nullable:true)
- username(blank:false,unique:true)
- userRealName(blank:false)
- passwd(blank:false)
- enabled()
- }
- String toString(){
- "${this.username}"
- }
- }