Brightspot CMS Developer Guide

Data modeling


Unlike traditional ORMs (Object-Relational Mapping), Dari does not map objects to database tables. Instead, it stores data in a schema-less format that is appropriate for the underlying database. For RDBMS (Relational Database Management Systems), Dari serializes object data into JSON and stores it in the database as a BLOB. Changes to the data model do not require updates to database schema.

With Dari, data is modeled with Java classes that use standard data types. A Java class serves as the specification for a model, defining types, relationships, and behaviors. For example, you can model a system user as User, with a first name, last name, and username. You can then define a related model called Activity, a base class with Date and User fields. Specific system activities like checkin and checkout can be modeled as subclasses of Activity. What results is an emerging object model representing instances of User and Activity that are stored in the underlying database.

Anything can be modeled and accessed with a web view or through an API. A data model can be altered by modifying the Java classes that define it. Free of schema dependencies, Dari enables rapid data model changes.

Previous Topic
HTTP endpoint database
Next Topic
Modeling
Was this topic helpful?
Thanks for your feedback.
The elements that get you up and running in a matter of days, from pre-built content types, to modules, to landing pages.

Content types
Modules
Landing pages
Everything you need to manage and administer content within Brightspot CMS, including plug-and-play integrations.

Dashboards
Authoring content
Workflows
Admin configurations
A guide for installing, supporting and administering code on the Brightspot platform, including integrations requiring developer support to use.

Field types
Content modeling
Rich-text elements
Images