Introduction to the Default SQL Projection
For any persistent class, the compiler generates an SQL table definition, so that the stored data can be accessed via SQL in addition to via the object interface.
The table contains one record for each saved object, and the table can be queried via InterSystems SQL. The following shows the results of a query of the Sample.Person table:
The following table summarizes the default projection:
The Object-SQL Projection
From (Object Concept) ... |
To (Relational Concept) ... |
Package |
Schema |
Class |
Table |
OID |
Identity field |
Data type property |
Field |
Reference property |
Reference field |
Embedded object |
Set of fields |
List property |
List field |
Array property |
Child table |
Stream property |
BLOB |
Index |
Index |
Class method |
Stored procedure |
Other topics provide details and describe any changes you can make: