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
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 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 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
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") }
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
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
ProtoUser provides a "User" with a first name, last name, email, etc.