The meta record (the object that contains the meta result for this type)
The meta record (the object that contains the meta result for this type)
Returns the JSON representation of this record
Encode this record instance as a JObject
Encode this record instance as a JObject
Returns the JSON representation of this record, converts asJValue to JsObj
Returns the JSON representation of this record, converts asJValue to JsObj
a JsObj
The email field for the User.
The email field for the User. You can override the behavior of this field:
override lazy val email = new MyEmail(this, 48) { println("I am doing something different") }
The email first name
The email first name
Find the field by name
Find the field by name
-- the name of the field to find
Box[MappedField]
Get the fields defined on the meta object for this record instance
Get the fields defined on the meta object for this record instance
The first name field for the User.
The first name field for the User. You can override the behavior of this field:
override lazy val firstName = new MyFirstName(this, 32) { println("I am doing something different") }
The string name for the first name field
The string name for the first name field
The primary key field for the User.
The primary key field for the User. You can override the behavior of this field:
override lazy val id = new MyMappedLongClass(this) { println("I am doing something different") }
The last field for the User.
The last field for the User. You can override the behavior of this field:
override lazy val lastName = new MyLastName(this, 32) { println("I am doing something different") }
The last name string
The last name string
The locale field for the User.
The locale field for the User. You can override the behavior of this field:
override lazy val locale = new MyLocale(this, 32) { println("I am doing something different") }
The string for the locale field
The password field for the User.
The password field for the User. You can override the behavior of this field:
override lazy val password = new MyPassword(this) { println("I am doing something different") }
The display name for the password field
The display name for the password field
Is it safe to make changes to the record (or should we check access control?)
Is it safe to make changes to the record (or should we check access control?)
Save the instance and return the instance
Save the instance and return the instance
Sets the fields of this Record from the given JSON.
Sets the fields of this Record from the given JSON.
Set the fields of this record from the given JValue
Set the fields of this record from the given JValue
Sets the fields of this Record from the given JSON.
Sets the fields of this Record from the given JSON.
Sets the fields of this Record from the given Req.
Sets the fields of this Record from the given Req.
The superuser field for the User.
The superuser field for the User. You can override the behavior of this field:
override lazy val superUser = new MySuperUser(this) { println("I am doing something different") }
The time zone field for the User.
The time zone field for the User. You can override the behavior of this field:
override lazy val timezone = new MyTimeZone(this, 32) { println("I am doing something different") }
The string for the timezone field
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- the function to execute on form submission
the form
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- If it's Full, put a submit button on the form with the value of the parameter
- the function to execute on form submission
the form
Returns the HTML representation of this Record
Returns the HTML representation of this Record
The unique id field for the User.
The unique id field for the User. This field is used for validation, lost passwords, etc. You can override the behavior of this field:
override lazy val uniqueId = new MyUniqueId(this, 32) { println("I am doing something different") }
Convert the id to a String
Convert the id to a String
Validates this Record by calling validators for each field
Validates this Record by calling validators for each field
a List of FieldError. If this list is empty you can assume that record was validated successfully
Whether the user has been validated.
Whether the user has been validated. You can override the behavior of this field:
override lazy val validated = new MyValidated(this, 32) { println("I am doing something different") }
ProtoUser is bare bones. MetaProtoUser contains a bunch more fields including a validated flag, locale, timezone, etc.