Create a new object named manufacturer with two fields

Assignment Help Computer Engineering
Reference no: EM133710184

Homework: Computer Science

For this homework, you will need to create a Netbeans project (using Spring Initializer) which you will need to name using your Last name followed by your first name followed by "-Homework" to name it.

Finally you will need to perform this work using Spring Boot.

Part 1: Initialization

A. Our spring system will be a video game catalog system that will allow us to work with a video game database We'll need a basic video game object (name it Game) which has the following fields with the following types:

I. EQUALS method should exist and use GID to compare games for equality

II. Should include the following fields

a. GID (int), name (String), system (String) genre (String) price (double)

i. Note that system is the type of system the game runs on (Atari, Nintendo Swith, etc.)
ii. Note that genre is a type of game, like RPG, Action, Racing, etc

B. Your Controller should create 30 games at random using the initialization code similar to what we developed in class and store them in an ArrayList designed to store games.

Part 2: GET endpoint

A. Get all games
B. Get employee with given GID

I. GID must be given through the pat

II. If the employee with the given GID exists, return it
III. Otherwise, return 404

C. Get all games for a given system

I. System must be given through the pat
II. Return all games for a given system

D. Get all games for a given genre

I. Genre must be given through the pat
II. Return all games for a given genre

E. Get all games priced between a given range (low, high values

I. A high value and a low value must be given through the pat
II. Return all games that are priced between the high and low given val

Part 3: POST endpoint

A. Add a game

I. Game must be given through the body
II. No duplicates allowed
III. Only accept valid games (must use validation criteria from part V)
IV. Report with game if OK, or report FOUND

Part 4: PUT endpoint

A. Update a game

I. Game must be given through the body
II. Game must already exist
III. Update the game using the given game values
IV. Only accept valid games
V. Report with employee if OK, conflict otherwise

Part 5: DELETE endpoint

A. Delete game with the given GID

I. GID must be given through the pat
II. Game must exist with the given GI
III. Report with game if OK, 404 otherwise

Part 6: Validation (Employee)

A. Validate all fields of employee using the following constrain

I. GID must be present and a 6 digit number
II. Name, genre, system must be present and not empty string
III. Price must be positive number and greater than 0
IV. Make sure to have exception handling as necessary.

You will work on some additional GET endpoints

A. Create a new object named Manufacturer with two fields: (int MID, and (String) name

B. In the constructor for your controller, generate 5 manufactures and put them into a separate list.

C. Create an additional int field for game named man (will refer to their manufacturer's MID) and initialize the field during creation of the games to one of the MIDs of the manufacturers you created.

D. Create the endpoints necessary in the same controller to manage manufacturer (list, delete, update, put)

E. Create an endpoint that gets all games for a given manufacturer name

I. Manufacturer name must be given through the path.

II. Return all games for a given manufacturer name.

Reference no: EM133710184

Questions Cloud

Describe ethical principles both supporting the actions : Describe ethical principles both supporting the actions of the principal actors in a computer ethics case and contradicting the actions of the principal actors.
Study fire investigation : Case studies are a useful tool to study fire investigation. What caused this fire to start and then spread? Research the Conception Dive Boat fire.
Describe the purpose and primary elements of a cirt plan : Describe the purpose and primary elements of a CIRT plan. Discuss the relationship between a CIRT plan and risk management.
Which legal school of thought is illustrated in dialogue : Bob: Listen, donuts are made to bring joy into our lives and to wake up our glazed faculties. Which legal school of thought is illustrated in this dialogue?
Create a new object named manufacturer with two fields : CST 365- Create a new object named Manufacturer with two fields. Create the endpoints necessary in the same controller to manage manufacturer.
What was decision in obergefell v. hodges : What was the decision in Obergefell v. Hodges? You may need to do some research to answer this question. Why do you think people are living longer?
Professional exchange and applied research : HR7004 Mental Wealth: Professional Exchange and Applied Research, Discuss the rationale for selecting the topic and potential benefits that your research
Discuss potential improvements or innovations : Discuss potential improvements or innovations that could enhance the effectiveness of your chosen type of arbitration.
General rule patrimonial delictual damage suffered : As a general rule the patrimonial delictual damage suffered by Randy is the difference between Randy's patrimony before and after the commission of the delict.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd