Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Suppose you have been given the following ER diagram for critics review of music songs. 1- Implement the upsert operation for critiques table for

JAVA

Suppose you have been given the following ER diagram for critics review of music songs. 1- Implement the upsert operation for critiques table for both cases: a) JDBC and b)JPA (by upsert, we mean, if the data exists update it with input data and if not then insert it. You also need to implement a SongsDAO class that offers ICRUD functionality. 2- The songs review website exposes an API to external clients. The API takes as input the genre code and returns a list of songs belonging to that genre. If the genre code is not provided(or is null/empty) then all the songs will be returned. For each song, id, title, number of critiques and average score will be returned. Provide the implementation of this API either as SOAP or REST. Use JPA entities in question 1. image text in transcribed

genres code varchar(7) name varchar(70) songs id int (7) title varchar(70) genres_code varchar(7) date_of_release DATE critics id int (7) name varchar(66) surname varchar(66) email varchar (66) critiques critic_id int (7) song_id int (7) rating int (10) comments varchar (66) genres code varchar(7) name varchar(70) songs id int (7) title varchar(70) genres_code varchar(7) date_of_release DATE critics id int (7) name varchar(66) surname varchar(66) email varchar (66) critiques critic_id int (7) song_id int (7) rating int (10) comments varchar (66)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

How are pecuniary damages typically calculated?

Answered: 1 week ago

Question

=+ Are ballots compulsory?

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago