Although we have only created five tables, looking in the lib/model
folder, and the subfolders of om/
and map/
reveals that there are a total of 25 files. The files that we are interested in are located in the lib/model
and lib/model/om
folders. The files generated in the lib/model/om
folder contain all of the base classes, and the files in the lib/model
folder contain the custom classes that extend the base classes.
You will also notice that for each class there is also a corresponding peer class. The peer classes are what we use to query the database, and are referred to as the Data Access Objects (DAOs). Within these classes, there are numerous methods created for us. The non-peer counterpart represents the rows of the table in the result set and provides us with methods to access the data in each row.
The custom classes are where we add our methods to query the database. It is important that we add all our code to the custom classes, and if need be extend the base...