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: Work with Postgresql database server. Provide a way to communicatewith end users aGraphic user interface bConsole Display data from database upon user requests Update insertupdatedeletedata in database upon user requests Database: Postgresql database server Language: Java or C# Data model size: at least entities with some relationships one to many, many to manyTeam size: members 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: Team members per teamReport on how the work been distributed among team members Project requirement doc aTopic domainbList functionalities will be implemented in the project use bullet items, not paragraphERD for data modeling Script sql filefor creating tables, views, functions, index and inserting initial records Views, functions, index are optional Class design list classes and methods in each classesSource code
In Java or C#
Making a rudamentry pet store inventory system.
create table breed
breedid serial,
breedname varchar unique not null,
primary key breedid
;
create table guineapig
guineapigid serial,
guineapigname varchar not null,
breedid int not null,
age int,
description varchar
availability varchar
price decimal
primary key guineapigid
foreign key breedid references breed breedid
;
create table shopper
shopperid serial,
firstname varchar not null,
lastname varchar not null,
email varchar unique not null,
cardnumber varchar not null,
phonenumber varchar
primary key shopperid
;
create table deliveryaddress
addressid serial,
street varchar not null,
city varchar not null,
state varchar not null,
zip varchar not null,
country varchar not null,
shopperid int not null,
primary key addressid
foreign key shopperid references shopper shopperid on delete cascade
;
create table orders
orderid serial,
status varchar
totalprice decimal
placedbyshopperid int not null,
dateplaced timestamptz,
primary key orderid
foreign key placedbyshopperid references shopper shopperid on delete cascade
;
create table orderdetail
orderid int not null,
guineapigid int not null,
primary key orderid guineapigid
foreign key orderid references orders orderid on delete cascade,
foreign key guineapigid references guineapig guineapigid
;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
