PATH  Documentation > WebObjects 4.5 > EOF Tools and Techniques

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:

A model contains not only the information it reads from the database, but values it derives from that information, including:

EOModeler derives entity names by taking a database table name and making all of it lowercase except for the first letter. It then removes underbar (_) characters and capitalizes any characters following underbars. For example:
Database Table Entity Name
EMPLOYEE Employee
EMPLOYEE_PHOTO EmployeePhoto
TEST_OF_SEVERAL_WORDS TestOfSeveralWords

Attribute names are based on corresponding database columns. They're derived in the same way as entities, except that EOModeler doesn't capitalize the first character. For example:
Database Column Attribute Name
NAME name
FIRST_NAME firstName
MOVIE_ID movieId

Table of Contents Next Section