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

  What host side interfaces are provided

ITECH2300 - Mobile Network and Wireless Communication - Federation University - Modulation bit rates achievable (including distance limitations)

  Computer security is not an issue for organizations alone

computer security is not an issue for organizations alone. anyone whose personal computer is connected to a network or

  Explain the concept of storage hierarchy in computer systems

Explain the concept of storage hierarchy in computer systems, and describe the primary characteristics of secondary storage devices.

  What range of bit rates can be supported to have flat fading

Suppose a wireless channel has a coherence bandwidth of 100 kHz. What range of bit rates can be supported to have flat fading?

  What is the minimum number of bit of a selected adc

If the temperature resolution 0.01 degree is required, what is the minimum number of bit of a selected ADC?

  Calculate the number of weak classifiers

Calculate the number of weak classifiers to be considered for each iteration during the development

  Identify data and their relations which are needed

Business data modeling is a process to identify data and their relations which are needed to support business operations.

  Discuss prevent root from breaking in over the network

prevent Root from breaking in over the network, and also keeps his phone in a locked sound-proof room in hopes of foiling Root

  Is your approach to software evolution comprehensive

COMP 3520 For the third assignment, you will demonstrate your understanding of software evolution. Using your start-up company from the first assignment.

  Research emerging enterprise network applications

Research emerging enterprise network applications and describe 3 that you think are most interesting and briefly explain why you believe this.

  Program will prompt user to enter a single digit integer

Assumptions: your program is to be loaded at location x3000. Data will reside at location x7000. Your program should be written in assembler.

  Compare two sets of characters

Your program will include a function called searcher that uses pointers to both the source string and the character set, and which returns a pointer to a char.

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