代写 COMP S368、代做 java 程序语言
COMP S368 Networks and Distributed Systems - Assignment 2
Question 2 [70 marks]
General requirements for Assignment-2
For this assignment, your task is to develop a simple Proof-of-concept Web Application. You can see a demo app here : More complicated feature and layout will be provided in next Assignment (e.g. image upload, place bid). This PoC only covers what we have discussed so far.
A template project has been prepared for you in the file “webportal.zip” or at here. You are required to implement functions and modify program codes in the following files:
• Events.java
• EventsRepo.java
• EventsValidator.java
• EventsController.java
• CustomControllerAdvice.java
• templates\events\index.html
• templates\events\form.html
There are comments with question number in each of the files (as shown below), and you need to implement the code according to their comment description. For those comments without question number are just reference purposes only.
The primary focus of the coding task include:
a. JPA entity and its annotation
b. JPA Validation annotation
c. JPA Repository and JPQL coding
d. JPA CRUD coding
e. Spring Boot MVC controller coding
f. Spring Boot MVC view template coding
g. Advance : Spring Boot Custom Validation
h. Advance : Common layout view template
i. Advance : Logging
You should screen capture these 2 screens of Items and Events list view with your students Id and the timestamp of your local system like below; to proof your application runs successfully and it is your own work. Failure to provide below screen will deduct 35marks for Q2. Place your screen capture at the end of this document.
Business logic requirements for Assignment 2
1. You can create, retrieve, update and delete 2 entities : Events and Items.
2. CRUD with validation and custom error handling for entity Items has been completed for you references
3. There are some validations for events as listed in next section
4. Custom Error page should show instead of default blank error page for HTTP 404, 500 or other HTTP Error
5. Log file should log down those error so that we can search the detail in log file by using the error Id (i.e. the UUID Code)
Validation
1. Event Code should be unique amount whole DB. Checking must exists in both create and update action. Error message as shown below
2. Some field level checking as shown below
a. Event date must be in future
b. Length checking as shown below for Code, Name, Description
c. Code, Name, Description must be provided
3. When event is ended, cannot perform Update and Delete
Marking criteria
1. Either copying from others or from Generative AI like ChatGPT is prohibited. All work should be your own. If plagiarism is detected, a first offense will result in a score of 0 for the entire assignment. A second offense will be reported to the course coordinator for further action. A third offense and subsequent offenses will be reported directly to the Dean of the School of Science & Technology, which may lead to an immediate failure in this course.
2. Your submitted program should be able to compile. If the code cannot be compiled, no marks can be awarded for this question.
3. Your submitted program should be able to run. If the code cannot run, at most 30 marks can be awarded for this question.
4. The code should fulfill both the general and specific requirements as in the “General requirements for Assignment-2”, “Business logic requirements for Assignment 2” and “Validation” section as well as those in the Java and html files.
You 2 screen captures should place at below
----- end -----
Page 13 of 13