Data types
The following objects and classes encapsulate your data within your Genesis application, so that you can process it and add value as you see fit.
The following objects and classes encapsulate your data within your Genesis application, so that you can process it and add value as you see fit.
DbEntity is the common interface implemented by table entities and view entities.
Using DbRecord instead of entities will circumvent compile-time validation of database interactions. This means that errors might not appear until runtime or might lead to unexpected results.
Index entities are nested in table and view entities. The name will be based on the index name. The entity can be constructed by passing in the field values in order. The first field of the index must always be provided, and the others are optional.
Table entities are classes generated by Genesis that match your applications's data model. The generated entity name is based on the table name, but will be camel case.
View entities are classes generated by Genesis, which match your application's data model. The name of the view entity that is generated will be the name specified in its definition, but it is converted from snake case to camel case; for example, VIEW_NAME becomes ViewName. All table/view entities implement a common interface called DbEntity.