Extending a Datastore Class


Extending a datastore class is useful for a lower maintenance datastore model by avoiding duplicated attributes in several similar datastore classes. There are many opporutunites to fine tune your datastore model by extending and enhancing a datastore class.

After defining your base datastore class you can extend and provide the extended datastore class its own:
  • Calculated attributes
  • Relation attributes
  • Permissions
  • Scope
  • Restricting queries
  • Datastore class methods
An example would be an Employee class which is extended into Manager, SupportStaff, and SalesPerson derived datastore classes. Each of these derived datastoreclasses could have its own permissions and calculated attributes, but also be current with any changes in the Employee datastore class automatically.



For more information about extending a datastore class, refer to the "Datastore Classes" chapter in the Wakanda Studio Reference Guide.