Table of Contents Previous Section
What a New Model Includes
When you create a new model, the information it includes depends on how completely you've specified the underlying database. EOModeler can read all of the following from a database and include it in a default model:
- Table and column names
- Column data types, including the width constraint of string data types
- Primary keys
- User constraints, such as null constraints and uniqueness
- Foreign key definitions (which are expressed in a model as relationships)
- Stored procedures
- Entity and attribute names
- A mapping between the data type of a database column and a corresponding value class, such as String, Number, or NSGregorianDate (NSString, NSNumber, or NSCalendarDate in Objective-C). See the class specification for each adaptor for a listing of the adaptor's default database type to value class mapping.
Database Table | Entity Name |
---|---|
EMPLOYEE | Employee |
EMPLOYEE_PHOTO | EmployeePhoto |
TEST_OF_SEVERAL_WORDS | TestOfSeveralWords |
Database Column | Attribute Name |
---|---|
NAME | name |
FIRST_NAME | firstName |
MOVIE_ID | movieId |
Table of Contents Next Section