Lab1

pdf

School

University of Toronto *

*We aren’t endorsed by this school

Course

350

Subject

Information Systems

Date

Dec 6, 2023

Type

pdf

Pages

4

Uploaded by MagistrateWorldChinchilla30

Report
MIE350F Lab #1 Getting Started with CMS Fall 2023 Objective: Download the Course Management System (CMS), compile it and get it working, understand the basic structure of CMS. Before You Begin: 1. Log into Quercus 2. Go to the “Labs” module 3. Download cms.zip from the page “Lab 1” to your home drive (W:\). 4. Right click on cms.zip and select 7-Zip à Extract Here 5. You should now have the extracted folder W:\cms Getting CMS Running in IntelliJ IDEA: 1. In Start Menu search for “IntelliJ IDEA”
2. In the first run, you may be asked to accept their User Agreement. 3. In the first screen select “Open” and then select the extracted folder W:\cms. Then, click on “OK”. 4. If you get the following window, select “Trust Project” 5. Once IntelliJ is running and finishes loading the project, follow the next steps to make sure you can run the code: a. Click on the “Project” tab in the top left corner to display the project folder b. Go to cms à src à main à java à com.example.cms c. Right click on CmsApplication and select “Run ‘CmsApplication.main()’” Steps a-c are shown below:
d. Your application will start running and when it is started you should be able to see the text “APPLICATION IS RUNNING” in the terminal window: e. Now stop the application by clicking on the stop button: f. The questions in this lab do not require running the code. Organization of CMS Files: If you followed the above instructions: The Java files for the project are in: W:\cms\src\main\java\com\example\cms
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
The Data input file is: W:\cms\src\main\resources\data.sql Note: If you did not follow the instructions exactly, your files may be elsewhere. Questions to Answer: Examine the CMS code and refresh your knowledge from the Data Modelling and Object- Oriented Programming courses by answering the following questions: 1. Look under the model folder (com.example.cms.model): a. How many classes are there in the model folder? b. How many entity classes (classes annotated with the decorator @Entity ) are there in the CMS? c. Can you find any interface or abstract classes? Can you find what classes implement these interface/abstract classes? 2. The system is based on a database that is initialized each time we run the code based on the SQL code in the data input file (resources/data.sql). Based on data input file, answer the following questions on the content of the database when the system is started (you do not need to run any code): a. How many courses are in the database? b. How many students are in the database? c. What is the largest number of marks entered for a single course in the system? 3. Each entity has a key (annotated with @Id ). What is the key for the entities Course, Student, and Professor? 4. Recall the Data Modelling course (MIE253). Can you draw an Entity-Relationship (ER) diagram for this course management system (CMS) and include an IS-A diagram among the three entities Person , Student , and Professor classes?