Question: Implement an application with database involved. The application: 1 . Work with Postgresql database server. 2 . Provide a way to communicate with end users

Implement an application with database involved. The application: 1.Work with Postgresql database server. 2.Provide a way to communicatewith end users a.Graphic user interface b.Console 3.Display data from database upon user requests 4.Update (insert/update/delete)data in database upon user requests Database: Postgresql database server Language: Java or C# Data model size: at least 5entities with some relationships (one to many, many to many)Team size: 23members per team *Do not reuse the project you did in other classes. You can reuse the topic, but not the code. *You need to write program to connect to the database server, include SQL statements in program to retrieve and update data. Do not relies on existing frameworks to generate SQL statements. What to submit in the final package: 1.Team members (2-3per team)2.Report on how the work been distributed among team members 3.Project requirement doc a.Topic (domain)b.List functionalities will be implemented in the project (use bullet items, not paragraph)4.ERD for data modeling 5.Script (.sql file)for creating tables, views, functions, index and inserting initial records Views, functions, index are optional 6.Class design (list classes and methods in each classes)7.Source code
In Java or C#
Making a rudamentry pet store inventory system.
create table breed (
breed_id serial,
breed_name varchar(100) unique not null,
primary key (breed_id)
);
create table guinea_pig (
guinea_pig_id serial,
guinea_pig_name varchar(100) not null,
breed_id int not null,
age int,
description varchar(256),
availability varchar(50),
price decimal(10,2),
primary key (guinea_pig_id),
foreign key (breed_id) references breed (breed_id)
);
create table shopper (
shopper_id serial,
first_name varchar(100) not null,
last_name varchar(100) not null,
email varchar(200) unique not null,
card_number varchar(30) not null,
phone_number varchar(30),
primary key (shopper_id)
);
create table delivery_address (
address_id serial,
street varchar(100) not null,
city varchar (100) not null,
state varchar(100) not null,
zip varchar(50) not null,
country varchar(100) not null,
shopper_id int not null,
primary key (address_id),
foreign key (shopper_id) references shopper (shopper_id) on delete cascade
);
create table orders (
order_id serial,
status varchar(50),
total_price decimal(10,2),
placed_by_shopper_id int not null,
date_placed timestamptz,
primary key (order_id),
foreign key (placed_by_shopper_id) references shopper (shopper_id) on delete cascade
);
create table order_detail (
order_id int not null,
guinea_pig_id int not null,
primary key (order_id, guinea_pig_id),
foreign key (order_id) references orders (order_id) on delete cascade,
foreign key (guinea_pig_id) references guinea_pig (guinea_pig_id)
);
Please show code in java, and show complete code for all classes involved. Like Shopper, Order, and Guinea Pig and these should all relate to each other, please.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!