Record

Version 1, last updated by paul.dale at 2011-01-07

Record is one of two persistence layers included with Lift . Unlike Mapper, Record does not attempt to be a complete ORM.

Record is a thin layer over a persistence mechanism for persisting objects.

Due to the fact that all of the many persistence mechanisms have wildly different capabilities some specific record implementations may have different capabilities than others.

See the specific implementations for more information.

The general contract that you get with all records is that a record

  • can be created
  • can be validated with validate
  • can be presented as XHtml, Json, or as a Form.
  • will contain fields which can be listed with allFields.
  • can be created directly from a Request containing params with names that match the fields on a Record .

Fields implement Bindable, which means that they can be used directly with bind() or with CSS Transforms.

Fields provide many useful functions for displaying, validating, or modifying values on a record.

The fields are the same fields used by Mapper and can be used directly with LiftScreen or Wizards.


Comments are disabled for this space. In order to enable comments, Messages tool must be added to project.

You can add Messages tool from Tools section on the Admin tab.