From 154096f1fff54bb6c05bf2186a2e4192243b01db Mon Sep 17 00:00:00 2001 From: shayan hashemi Date: Thu, 4 May 2023 23:25:02 +0430 Subject: [PATCH 1/3] copy final project in directory --- RentalProject/Book.java | 27 +++++++++++++ RentalProject/Customer.java | 47 ++++++++++++++++++++++ RentalProject/Game.java | 28 ++++++++++++++ RentalProject/Item.java | 39 +++++++++++++++++++ RentalProject/Movie.java | 46 ++++++++++++++++++++++ RentalProject/Rental.java | 46 ++++++++++++++++++++++ RentalProject/RentalStore.java | 71 ++++++++++++++++++++++++++++++++++ 7 files changed, 304 insertions(+) create mode 100644 RentalProject/Book.java create mode 100644 RentalProject/Customer.java create mode 100644 RentalProject/Game.java create mode 100644 RentalProject/Item.java create mode 100644 RentalProject/Movie.java create mode 100644 RentalProject/Rental.java create mode 100644 RentalProject/RentalStore.java diff --git a/RentalProject/Book.java b/RentalProject/Book.java new file mode 100644 index 0000000..06c4cb7 --- /dev/null +++ b/RentalProject/Book.java @@ -0,0 +1,27 @@ +package university.Library; + +class Book extends Item { + private String author; + private String publisher; + public Book(String id, String title, String genre, int releaseDate, double rentalFee, String author, String publisher) { + super(id, title, genre, releaseDate); + this.author = author; + this.publisher = publisher; + } + + public String getAuthor() { + return author; + } + + public String getPublisher() { + return publisher; + } + + public void rent() { + // برای اجاره کردن کتاب + } + + public void returnItem() { + // برای برگردوندن یک کتاب + } +} diff --git a/RentalProject/Customer.java b/RentalProject/Customer.java new file mode 100644 index 0000000..ae14ef5 --- /dev/null +++ b/RentalProject/Customer.java @@ -0,0 +1,47 @@ +package university.Library; + +import java.util.ArrayList; +import java.util.List; + +public class Customer { + private String name; + private String email; + private String phone; + private String address; + private int id; + private List rentals; + + + public Customer(String name, String email, String phone, String address, int id) { + this.name = name; + this.email = email; + this.phone = phone; + this.address = address; + this.id = id; + + } + + public int getId() { + return this.id; + } + + public String getName() { + return this.name; + } + + public String getEmail() { + return this.email; + } + + public String getPhone() { + return this.phone; + } + + public String getAddress() { + return this.address; + } + + public void addRental(Rental rental) { + } +} + diff --git a/RentalProject/Game.java b/RentalProject/Game.java new file mode 100644 index 0000000..23de39d --- /dev/null +++ b/RentalProject/Game.java @@ -0,0 +1,28 @@ +package university.Library; + +class Game extends Item { + private String platform; + private String publisher; + + public Game(String id, String title, String genre, int releaseDate, String platform, String publisher) { + super(id, title, genre, releaseDate); + this.platform = platform; + this.publisher = publisher; + } + + public String getPlatform() { + return platform; + } + + public String getPublisher() { + return publisher; + } + + public void rent() { + // برای قرض گرفتن یک بازی + } + + public void returnItem() { + // برای پس دادن یک بازی + } +} \ No newline at end of file diff --git a/RentalProject/Item.java b/RentalProject/Item.java new file mode 100644 index 0000000..07faa34 --- /dev/null +++ b/RentalProject/Item.java @@ -0,0 +1,39 @@ +package university.Library; + +public class Item { + public String id; + public String title; + public String genre; + public int releaseDate; + public boolean available = true; + + public Item(String id, String title, String genre, int releaseDate) { + this.id = id; + this.title = title; + this.genre = genre; + this.releaseDate = releaseDate; + } + + public String getId() { + return id; + } + + public String getTitle() { + return title; + } + + public String getGenre() { + return genre; + } + + public int getReleaseDate() { + return releaseDate; + } + + public boolean isAvailable() { + return available; + } + public boolean setAvailable(boolean status){ + return available; + } +} diff --git a/RentalProject/Movie.java b/RentalProject/Movie.java new file mode 100644 index 0000000..22691e3 --- /dev/null +++ b/RentalProject/Movie.java @@ -0,0 +1,46 @@ +package university.Library; + +public class Movie extends Item{ + private String id; + private String title; + private String genre; + private String director; + private String cast; + private int releaseDate; + private boolean available; + + public Movie(String title, String genre, String director, String cast, int releaseDate, String id) { + super(id,title,genre,releaseDate); + this.title = title; + this.genre = genre; + this.director = director; + this.cast = cast; + this.releaseDate = releaseDate; + this.id=id; + this.available = true; + } + + + + public String getTitle() { + return title; + } + + public String getGenre() { + return genre; + } + + public String getDirector() { + return director; + } + + public String getCast() { + return cast; + } + + public int getReleaseDate() { + return releaseDate; + } + + +} diff --git a/RentalProject/Rental.java b/RentalProject/Rental.java new file mode 100644 index 0000000..a0e8ec7 --- /dev/null +++ b/RentalProject/Rental.java @@ -0,0 +1,46 @@ +package university.Library; + +import java.util.Date; + +public class Rental { + private Item item; + private Customer customer; + private int id; + private Date rentalDate; + private Date returnDate; + + public Rental(Item item, Customer customer, int id) { + this.item = item; + this.customer = customer; + this.id = id; + this.rentalDate = new Date(); + } + + public int getId() { + return this.id; + } + + public Item getItem() { + return this.item; + } + + public Customer getCustomer() { + return this.customer; + } + + public Date getRentalDate() { + return this.rentalDate; + } + + public Date getReturnDate() { + return this.returnDate; + } + + public void setReturnDate(Date date) { + this.returnDate = date; + } + + public Item calculateLateFee() { + return null; + } +} \ No newline at end of file diff --git a/RentalProject/RentalStore.java b/RentalProject/RentalStore.java new file mode 100644 index 0000000..f572277 --- /dev/null +++ b/RentalProject/RentalStore.java @@ -0,0 +1,71 @@ +package university.Library; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RentalStore { + private List items; + private List customers; + + + + public RentalStore() { + this.items= new ArrayList<>(); + this.customers = new ArrayList<>(); + } + + public void register(Customer customer) { + this.customers.add(customer); + } + + public void addMovie(Item item) { + this.items.add(item); + } + + public void removeItem(Item item) { + this.items.remove(item); + } + + public List getAvailableItems() { + List availableItem = new ArrayList<>(); + for (Item item : this.items) { + if (item.isAvailable()) { + availableItem.add(item); + } + } + return availableItem; + } + + public void rentItem(Item item, Customer customer) { + if (item.isAvailable()) { + int rentalId=0; + Rental rental = new Rental(item, customer, rentalId++); + item.setAvailable(false); + customer.addRental(rental); + } + } + + public void returnItem(Rental rental) { + rental.getItem().setAvailable(true); + rental.setReturnDate(new Date()); + } + + public Customer getCustomerById(int id) { + for (Customer customer : this.customers) { + if (customer.getId() == id) { + return customer; + } + } + return null; + } + + public Item getItemById(String id) { + for (Item item : this.items) { + if (item.getId() == id) { + return item; + } + } + return null; + } +} From 47b6939191602f9191ae9cae8eeba1a56ba4f9b1 Mon Sep 17 00:00:00 2001 From: shayan hashemi Date: Fri, 19 May 2023 20:21:43 +0330 Subject: [PATCH 2/3] git init --- RentalProject/.idea/.gitignore | 8 ++++++++ RentalProject/.idea/compiler.xml | 13 ++++++++++++ RentalProject/.idea/encodings.xml | 7 +++++++ RentalProject/.idea/jarRepositories.xml | 20 +++++++++++++++++++ RentalProject/.idea/misc.xml | 14 +++++++++++++ RentalProject/.idea/vcs.xml | 6 ++++++ RentalProject/pom.xml | 17 ++++++++++++++++ RentalProject/{ => src/main/java}/Book.java | 4 ++-- .../{ => src/main/java}/Customer.java | 2 +- RentalProject/{ => src/main/java}/Game.java | 4 ++-- RentalProject/{ => src/main/java}/Item.java | 2 +- RentalProject/{ => src/main/java}/Movie.java | 2 +- RentalProject/{ => src/main/java}/Rental.java | 2 +- .../{ => src/main/java}/RentalStore.java | 2 +- .../main/java}/project_should_be_here | 0 RentalTest/pom.xml | 17 ++++++++++++++++ 16 files changed, 111 insertions(+), 9 deletions(-) create mode 100644 RentalProject/.idea/.gitignore create mode 100644 RentalProject/.idea/compiler.xml create mode 100644 RentalProject/.idea/encodings.xml create mode 100644 RentalProject/.idea/jarRepositories.xml create mode 100644 RentalProject/.idea/misc.xml create mode 100644 RentalProject/.idea/vcs.xml create mode 100644 RentalProject/pom.xml rename RentalProject/{ => src/main/java}/Book.java (91%) rename RentalProject/{ => src/main/java}/Customer.java (96%) rename RentalProject/{ => src/main/java}/Game.java (91%) rename RentalProject/{ => src/main/java}/Item.java (96%) rename RentalProject/{ => src/main/java}/Movie.java (96%) rename RentalProject/{ => src/main/java}/Rental.java (96%) rename RentalProject/{ => src/main/java}/RentalStore.java (98%) rename RentalProject/{ => src/main/java}/project_should_be_here (100%) create mode 100644 RentalTest/pom.xml diff --git a/RentalProject/.idea/.gitignore b/RentalProject/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/RentalProject/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/RentalProject/.idea/compiler.xml b/RentalProject/.idea/compiler.xml new file mode 100644 index 0000000..6a56d52 --- /dev/null +++ b/RentalProject/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RentalProject/.idea/encodings.xml b/RentalProject/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/RentalProject/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/RentalProject/.idea/jarRepositories.xml b/RentalProject/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/RentalProject/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/RentalProject/.idea/misc.xml b/RentalProject/.idea/misc.xml new file mode 100644 index 0000000..132404b --- /dev/null +++ b/RentalProject/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/RentalProject/.idea/vcs.xml b/RentalProject/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/RentalProject/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RentalProject/pom.xml b/RentalProject/pom.xml new file mode 100644 index 0000000..e8adec8 --- /dev/null +++ b/RentalProject/pom.xml @@ -0,0 +1,17 @@ + + + 4.0.0 + + org.example + RentalTest + 1.0-SNAPSHOT + + + 8 + 8 + UTF-8 + + + \ No newline at end of file diff --git a/RentalProject/Book.java b/RentalProject/src/main/java/Book.java similarity index 91% rename from RentalProject/Book.java rename to RentalProject/src/main/java/Book.java index 06c4cb7..b786b1a 100644 --- a/RentalProject/Book.java +++ b/RentalProject/src/main/java/Book.java @@ -1,6 +1,6 @@ -package university.Library; -class Book extends Item { + +class Book extends university.Library.Item { private String author; private String publisher; public Book(String id, String title, String genre, int releaseDate, double rentalFee, String author, String publisher) { diff --git a/RentalProject/Customer.java b/RentalProject/src/main/java/Customer.java similarity index 96% rename from RentalProject/Customer.java rename to RentalProject/src/main/java/Customer.java index ae14ef5..367570c 100644 --- a/RentalProject/Customer.java +++ b/RentalProject/src/main/java/Customer.java @@ -1,4 +1,4 @@ -package university.Library; + import java.util.ArrayList; import java.util.List; diff --git a/RentalProject/Game.java b/RentalProject/src/main/java/Game.java similarity index 91% rename from RentalProject/Game.java rename to RentalProject/src/main/java/Game.java index 23de39d..2889e06 100644 --- a/RentalProject/Game.java +++ b/RentalProject/src/main/java/Game.java @@ -1,6 +1,6 @@ -package university.Library; -class Game extends Item { + +class Game extends university.Library.Item { private String platform; private String publisher; diff --git a/RentalProject/Item.java b/RentalProject/src/main/java/Item.java similarity index 96% rename from RentalProject/Item.java rename to RentalProject/src/main/java/Item.java index 07faa34..d16eb96 100644 --- a/RentalProject/Item.java +++ b/RentalProject/src/main/java/Item.java @@ -1,4 +1,4 @@ -package university.Library; + public class Item { public String id; diff --git a/RentalProject/Movie.java b/RentalProject/src/main/java/Movie.java similarity index 96% rename from RentalProject/Movie.java rename to RentalProject/src/main/java/Movie.java index 22691e3..a7fcd4e 100644 --- a/RentalProject/Movie.java +++ b/RentalProject/src/main/java/Movie.java @@ -1,4 +1,4 @@ -package university.Library; + public class Movie extends Item{ private String id; diff --git a/RentalProject/Rental.java b/RentalProject/src/main/java/Rental.java similarity index 96% rename from RentalProject/Rental.java rename to RentalProject/src/main/java/Rental.java index a0e8ec7..288b7a3 100644 --- a/RentalProject/Rental.java +++ b/RentalProject/src/main/java/Rental.java @@ -1,4 +1,4 @@ -package university.Library; + import java.util.Date; diff --git a/RentalProject/RentalStore.java b/RentalProject/src/main/java/RentalStore.java similarity index 98% rename from RentalProject/RentalStore.java rename to RentalProject/src/main/java/RentalStore.java index f572277..351d915 100644 --- a/RentalProject/RentalStore.java +++ b/RentalProject/src/main/java/RentalStore.java @@ -1,4 +1,4 @@ -package university.Library; + import java.util.ArrayList; import java.util.Date; diff --git a/RentalProject/project_should_be_here b/RentalProject/src/main/java/project_should_be_here similarity index 100% rename from RentalProject/project_should_be_here rename to RentalProject/src/main/java/project_should_be_here diff --git a/RentalTest/pom.xml b/RentalTest/pom.xml new file mode 100644 index 0000000..fa4cf26 --- /dev/null +++ b/RentalTest/pom.xml @@ -0,0 +1,17 @@ + + + 4.0.0 + + org.example + RentalTest + 1.0-SNAPSHOT + + + 8 + 8 + UTF-8 + + + \ No newline at end of file From 5fba4f9bd6d06810c7fd697687443a1532403dd1 Mon Sep 17 00:00:00 2001 From: shayan hashemi Date: Thu, 25 May 2023 09:49:35 +0330 Subject: [PATCH 3/3] updated --- RentalProject/pom.xml | 11 + .../main/java => }/project_should_be_here | 0 .../src/main/java/org/example/AllModules.java | 51 +++ .../src/main/java/{ => org/example}/Book.java | 7 +- .../main/java/{ => org/example}/Customer.java | 22 +- .../src/main/java/{ => org/example}/Game.java | 5 +- .../src/main/java/{ => org/example}/Item.java | 20 +- .../src/main/java/org/example/Main.java | 56 +++ .../main/java/{ => org/example}/Movie.java | 15 +- .../main/java/{ => org/example}/Rental.java | 17 +- .../java/{ => org/example}/RentalStore.java | 11 +- .../src/test/java/TestYourFork (1).json | 381 ++++++++++++++++++ .../classes/org/example/AllModules.class | Bin 0 -> 2255 bytes .../target/classes/org/example/Book.class | Bin 0 -> 959 bytes .../target/classes/org/example/Customer.class | Bin 0 -> 1769 bytes .../target/classes/org/example/Game.class | Bin 0 -> 901 bytes .../target/classes/org/example/Item.class | Bin 0 -> 1138 bytes .../target/classes/org/example/Main$1.class | Bin 0 -> 484 bytes .../target/classes/org/example/Main.class | Bin 0 -> 2841 bytes .../target/classes/org/example/Movie.class | Bin 0 -> 1158 bytes .../target/classes/org/example/Rental.class | Bin 0 -> 1633 bytes .../classes/org/example/RentalStore.class | Bin 0 -> 2812 bytes 22 files changed, 561 insertions(+), 35 deletions(-) rename RentalProject/{src/main/java => }/project_should_be_here (100%) create mode 100644 RentalProject/src/main/java/org/example/AllModules.java rename RentalProject/src/main/java/{ => org/example}/Book.java (70%) rename RentalProject/src/main/java/{ => org/example}/Customer.java (68%) rename RentalProject/src/main/java/{ => org/example}/Game.java (76%) rename RentalProject/src/main/java/{ => org/example}/Item.java (51%) create mode 100644 RentalProject/src/main/java/org/example/Main.java rename RentalProject/src/main/java/{ => org/example}/Movie.java (69%) rename RentalProject/src/main/java/{ => org/example}/Rental.java (61%) rename RentalProject/src/main/java/{ => org/example}/RentalStore.java (87%) create mode 100644 RentalProject/src/test/java/TestYourFork (1).json create mode 100644 RentalProject/target/classes/org/example/AllModules.class create mode 100644 RentalProject/target/classes/org/example/Book.class create mode 100644 RentalProject/target/classes/org/example/Customer.class create mode 100644 RentalProject/target/classes/org/example/Game.class create mode 100644 RentalProject/target/classes/org/example/Item.class create mode 100644 RentalProject/target/classes/org/example/Main$1.class create mode 100644 RentalProject/target/classes/org/example/Main.class create mode 100644 RentalProject/target/classes/org/example/Movie.class create mode 100644 RentalProject/target/classes/org/example/Rental.class create mode 100644 RentalProject/target/classes/org/example/RentalStore.class diff --git a/RentalProject/pom.xml b/RentalProject/pom.xml index e8adec8..43e7c7d 100644 --- a/RentalProject/pom.xml +++ b/RentalProject/pom.xml @@ -8,6 +8,17 @@ RentalTest 1.0-SNAPSHOT + + + com.google.code.gson + gson + 2.10.1 + + + + + + 8 8 diff --git a/RentalProject/src/main/java/project_should_be_here b/RentalProject/project_should_be_here similarity index 100% rename from RentalProject/src/main/java/project_should_be_here rename to RentalProject/project_should_be_here diff --git a/RentalProject/src/main/java/org/example/AllModules.java b/RentalProject/src/main/java/org/example/AllModules.java new file mode 100644 index 0000000..4958d2f --- /dev/null +++ b/RentalProject/src/main/java/org/example/AllModules.java @@ -0,0 +1,51 @@ +package org.example; + +import java.util.ArrayList; + +public class AllModules { + private ArrayList customers; + private ArrayList books; + private ArrayList games; + private ArrayList movies; + private ArrayList rentals; + + public ArrayList getCustomers() { + return customers; + } + + public void setCustomers(ArrayList customers) { + this.customers = customers; + } + + public ArrayList getBooks() { + return books; + } + + public void setBooks(ArrayList books) { + this.books = books; + } + + public ArrayList getGames() { + return games; + } + + public void setGames(ArrayList games) { + this.games = games; + } + + public ArrayList getMovies() { + return movies; + } + + public void setMovies(ArrayList movies) { + this.movies = movies; + } + + public ArrayList getRentals() { + return rentals; + } + + public void setRentals(ArrayList rentals) { + this.rentals = rentals; + } +} diff --git a/RentalProject/src/main/java/Book.java b/RentalProject/src/main/java/org/example/Book.java similarity index 70% rename from RentalProject/src/main/java/Book.java rename to RentalProject/src/main/java/org/example/Book.java index b786b1a..eda4120 100644 --- a/RentalProject/src/main/java/Book.java +++ b/RentalProject/src/main/java/org/example/Book.java @@ -1,12 +1,13 @@ +package org.example; - -class Book extends university.Library.Item { +class Book extends Item { private String author; private String publisher; - public Book(String id, String title, String genre, int releaseDate, double rentalFee, String author, String publisher) { + public Book(int id, String title, String genre, int releaseDate, double rentalFee, String author, String publisher) { super(id, title, genre, releaseDate); this.author = author; this.publisher = publisher; + this.available = true; } public String getAuthor() { diff --git a/RentalProject/src/main/java/Customer.java b/RentalProject/src/main/java/org/example/Customer.java similarity index 68% rename from RentalProject/src/main/java/Customer.java rename to RentalProject/src/main/java/org/example/Customer.java index 367570c..e539e3b 100644 --- a/RentalProject/src/main/java/Customer.java +++ b/RentalProject/src/main/java/org/example/Customer.java @@ -1,4 +1,4 @@ - +package org.example; import java.util.ArrayList; import java.util.List; @@ -9,7 +9,7 @@ public class Customer { private String phone; private String address; private int id; - private List rentals; + public ArrayList rentals; public Customer(String name, String email, String phone, String address, int id) { @@ -18,6 +18,7 @@ public Customer(String name, String email, String phone, String address, int id) this.phone = phone; this.address = address; this.id = id; + rentals=new ArrayList<>(); } @@ -37,11 +38,28 @@ public String getPhone() { return this.phone; } + + public String getAddress() { return this.address; } + public void setRentals(ArrayList rentals) { + + this.rentals = rentals; + } + public ArrayListgetRentals(){ + return rentals; + } + + + + + public void addRental(Rental rental) { + if (rentals==null) + rentals=new ArrayList<>(); + rentals.add(rental); } } diff --git a/RentalProject/src/main/java/Game.java b/RentalProject/src/main/java/org/example/Game.java similarity index 76% rename from RentalProject/src/main/java/Game.java rename to RentalProject/src/main/java/org/example/Game.java index 2889e06..919f54d 100644 --- a/RentalProject/src/main/java/Game.java +++ b/RentalProject/src/main/java/org/example/Game.java @@ -1,10 +1,11 @@ +package org.example; -class Game extends university.Library.Item { +class Game extends Item { private String platform; private String publisher; - public Game(String id, String title, String genre, int releaseDate, String platform, String publisher) { + public Game(int id, String title, String genre, int releaseDate, String platform, String publisher) { super(id, title, genre, releaseDate); this.platform = platform; this.publisher = publisher; diff --git a/RentalProject/src/main/java/Item.java b/RentalProject/src/main/java/org/example/Item.java similarity index 51% rename from RentalProject/src/main/java/Item.java rename to RentalProject/src/main/java/org/example/Item.java index d16eb96..2cb0d73 100644 --- a/RentalProject/src/main/java/Item.java +++ b/RentalProject/src/main/java/org/example/Item.java @@ -1,20 +1,22 @@ +package org.example; public class Item { - public String id; + public int id; public String title; public String genre; - public int releaseDate; - public boolean available = true; + public String releaseDate; + public boolean available = true + ; - public Item(String id, String title, String genre, int releaseDate) { + public Item(int id, String title, String genre, int releaseDate) { this.id = id; this.title = title; this.genre = genre; - this.releaseDate = releaseDate; + this.releaseDate = String.valueOf(releaseDate); } - public String getId() { + public int getId() { return id; } @@ -26,14 +28,14 @@ public String getGenre() { return genre; } - public int getReleaseDate() { + public String getReleaseDate() { return releaseDate; } public boolean isAvailable() { return available; } - public boolean setAvailable(boolean status){ - return available; + public void setAvailable(boolean status){ + available=status; } } diff --git a/RentalProject/src/main/java/org/example/Main.java b/RentalProject/src/main/java/org/example/Main.java new file mode 100644 index 0000000..3e2d3c2 --- /dev/null +++ b/RentalProject/src/main/java/org/example/Main.java @@ -0,0 +1,56 @@ +package org.example; +import com.google.gson.Gson; +import com.google.gson.reflect.TypeToken; + +import java.io.*; +import java.util.List; + + +public class Main { + public static void main(String[] args) throws IOException { +// System.out.println("Hello world!"); + RentalStore rentalStore = new RentalStore(); + Gson gson = new Gson(); + Reader reader = new FileReader("C:\\Users\\Lenovo\\Desktop\\rentalclone\\RentalSystem\\RentalProject\\src\\test\\java\\TestYourFork (1).json"); + AllModules models = gson.fromJson(reader, new TypeToken() { + }.getType()); + String test = gson.toJson(models); + Customer joshn = models.getCustomers().get(0); + Customer Emily = models.getCustomers().get(1); + Customer Brown = models.getCustomers().get(2); + for (Item item : models.getBooks()) { + if (item.id == 3) { + rentalStore.rentItem(item, joshn); + } else if (item.id == 6) { + rentalStore.rentItem(item, joshn); + } + } + for (Item item : models.getBooks()) { + if (item.id == 1) { + rentalStore.rentItem(item, Emily); + } else if (item.id == 7) { + rentalStore.rentItem(item, Emily); + } + } + for (Item item : models.getBooks()) { + if (item.id == 9) { + rentalStore.rentItem(item, Brown); + } else if (item.id == 4) { + rentalStore.rentItem(item, Brown); + } + } + reader.close(); + Gson writing=new Gson(); + String json = writing.toJson(models); + String filepath="C:\\Users\\Lenovo\\Desktop\\rentalclone\\RentalSystem\\RentalProject\\src\\test\\java\\TestYourFork (1).json"; + try { + FileWriter writer= new FileWriter(filepath); + writer.write(json); + writer.close(); + System.out.println("JSON DATA HAS BEEN UPDATED"); + }catch (IOException e){ + e.printStackTrace(); + } + } + +} \ No newline at end of file diff --git a/RentalProject/src/main/java/Movie.java b/RentalProject/src/main/java/org/example/Movie.java similarity index 69% rename from RentalProject/src/main/java/Movie.java rename to RentalProject/src/main/java/org/example/Movie.java index a7fcd4e..c4517a8 100644 --- a/RentalProject/src/main/java/Movie.java +++ b/RentalProject/src/main/java/org/example/Movie.java @@ -1,21 +1,20 @@ +package org.example; public class Movie extends Item{ - private String id; - private String title; - private String genre; + //private String title; از فایل اصلی باید پاک شن + //private String genre; private String director; private String cast; - private int releaseDate; - private boolean available; + //private boolean available; - public Movie(String title, String genre, String director, String cast, int releaseDate, String id) { + public Movie(String title, String genre, String director, String cast, int releaseDate, int id) { super(id,title,genre,releaseDate); this.title = title; this.genre = genre; this.director = director; this.cast = cast; - this.releaseDate = releaseDate; + this.releaseDate = String.valueOf(releaseDate); this.id=id; this.available = true; } @@ -38,7 +37,7 @@ public String getCast() { return cast; } - public int getReleaseDate() { + public String getReleaseDate() { return releaseDate; } diff --git a/RentalProject/src/main/java/Rental.java b/RentalProject/src/main/java/org/example/Rental.java similarity index 61% rename from RentalProject/src/main/java/Rental.java rename to RentalProject/src/main/java/org/example/Rental.java index 288b7a3..8a3c1d7 100644 --- a/RentalProject/src/main/java/Rental.java +++ b/RentalProject/src/main/java/org/example/Rental.java @@ -1,3 +1,4 @@ +package org.example; import java.util.Date; @@ -6,14 +7,14 @@ public class Rental { private Item item; private Customer customer; private int id; - private Date rentalDate; - private Date returnDate; + public Date rentalDate=new Date(); + public Date returnDate; public Rental(Item item, Customer customer, int id) { this.item = item; - this.customer = customer; + this.customer = new Customer(customer.getName(), customer.getEmail(), customer.getPhone(), customer.getAddress(), customer.getId()); this.id = id; - this.rentalDate = new Date(); + this.rentalDate=new Date(); } public int getId() { @@ -27,14 +28,14 @@ public Item getItem() { public Customer getCustomer() { return this.customer; } - - public Date getRentalDate() { - return this.rentalDate; - } + public Date getRentalDate(){return this.rentalDate;} public Date getReturnDate() { return this.returnDate; } + public void setRentalDate(Date rentalDate) { + this.rentalDate = rentalDate; + } public void setReturnDate(Date date) { this.returnDate = date; diff --git a/RentalProject/src/main/java/RentalStore.java b/RentalProject/src/main/java/org/example/RentalStore.java similarity index 87% rename from RentalProject/src/main/java/RentalStore.java rename to RentalProject/src/main/java/org/example/RentalStore.java index 351d915..e4867fc 100644 --- a/RentalProject/src/main/java/RentalStore.java +++ b/RentalProject/src/main/java/org/example/RentalStore.java @@ -1,3 +1,4 @@ +package org.example; import java.util.ArrayList; @@ -5,8 +6,12 @@ import java.util.List; public class RentalStore { - private List items; - private List customers; + private static List items; + private static List customers; + + public static ArrayList rentalList = new ArrayList<>(); + + @@ -60,7 +65,7 @@ public Customer getCustomerById(int id) { return null; } - public Item getItemById(String id) { + public Item getItemById(int id) { for (Item item : this.items) { if (item.getId() == id) { return item; diff --git a/RentalProject/src/test/java/TestYourFork (1).json b/RentalProject/src/test/java/TestYourFork (1).json new file mode 100644 index 0000000..0119bac --- /dev/null +++ b/RentalProject/src/test/java/TestYourFork (1).json @@ -0,0 +1,381 @@ +{ + "customers": [ + { + "name": "John Smith", + "email": "johnsmith@example.com", + "phone": "1234567890", + "address": "123 Main Street", + "id": 1, + "rentals": [ + { + "item": { + "author": "F. Scott Fitzgerald", + "publisher": "Charles Scribner\u0027s Sons", + "id": 6, + "title": "The Great Gatsby", + "genre": "Fiction", + "releaseDate": "1925-04-10", + "available": false + }, + "customer": { + "name": "John Smith", + "email": "johnsmith@example.com", + "phone": "1234567890", + "address": "123 Main Street", + "id": 1, + "rentals": [] + }, + "id": 0, + "rentalDate": "May 25, 2023 1:27:56 AM" + } + ] + }, + { + "name": "Emily Johnson", + "email": "emilyjohnson@example.com", + "phone": "9876543210", + "address": "456 Oak Avenue", + "id": 2, + "rentals": [ + { + "item": { + "author": "Alice Thompson", + "publisher": "Penguin Books", + "id": 1, + "title": "The Secret Garden", + "genre": "Fiction", + "releaseDate": "2022-03-15", + "available": false + }, + "customer": { + "name": "Emily Johnson", + "email": "emilyjohnson@example.com", + "phone": "9876543210", + "address": "456 Oak Avenue", + "id": 2, + "rentals": [] + }, + "id": 0, + "rentalDate": "May 25, 2023 1:27:56 AM" + }, + { + "item": { + "author": "J.K. Rowling", + "publisher": "Bloomsbury Publishing", + "id": 7, + "title": "Harry Potter and the Philosopher\u0027s Stone", + "genre": "Fantasy", + "releaseDate": "1997-06-26", + "available": false + }, + "customer": { + "name": "Emily Johnson", + "email": "emilyjohnson@example.com", + "phone": "9876543210", + "address": "456 Oak Avenue", + "id": 2, + "rentals": [] + }, + "id": 0, + "rentalDate": "May 25, 2023 1:27:56 AM" + } + ] + }, + { + "name": "Michael Brown", + "email": "michaelbrown@example.com", + "phone": "5555555555", + "address": "789 Elm Street", + "id": 3, + "rentals": [ + { + "item": { + "author": "Harper Lee", + "publisher": "J. B. Lippincott \u0026 Co.", + "id": 4, + "title": "To Kill a Mockingbird", + "genre": "Classic", + "releaseDate": "1960-07-11", + "available": false + }, + "customer": { + "name": "Michael Brown", + "email": "michaelbrown@example.com", + "phone": "5555555555", + "address": "789 Elm Street", + "id": 3, + "rentals": [] + }, + "id": 0, + "rentalDate": "May 25, 2023 1:27:56 AM" + } + ] + } + ], + "books": [ + { + "author": "Alice Thompson", + "publisher": "Penguin Books", + "id": 1, + "title": "The Secret Garden", + "genre": "Fiction", + "releaseDate": "2022-03-15", + "available": false + }, + { + "author": "Benjamin Martin", + "publisher": "HarperCollins", + "id": 2, + "title": "The Alchemist", + "genre": "Fantasy", + "releaseDate": "2021-07-01", + "available": true + }, + { + "author": "Jane Austen", + "publisher": "Thomas Egerton", + "id": 3, + "title": "Pride and Prejudice", + "genre": "Romance", + "releaseDate": "1813-01-28", + "available": false + }, + { + "author": "Harper Lee", + "publisher": "J. B. Lippincott \u0026 Co.", + "id": 4, + "title": "To Kill a Mockingbird", + "genre": "Classic", + "releaseDate": "1960-07-11", + "available": false + }, + { + "author": "George Orwell", + "publisher": "Secker \u0026 Warburg", + "id": 5, + "title": "1984", + "genre": "Dystopian", + "releaseDate": "1949-06-08", + "available": true + }, + { + "author": "F. Scott Fitzgerald", + "publisher": "Charles Scribner\u0027s Sons", + "id": 6, + "title": "The Great Gatsby", + "genre": "Fiction", + "releaseDate": "1925-04-10", + "available": false + }, + { + "author": "J.K. Rowling", + "publisher": "Bloomsbury Publishing", + "id": 7, + "title": "Harry Potter and the Philosopher\u0027s Stone", + "genre": "Fantasy", + "releaseDate": "1997-06-26", + "available": false + }, + { + "author": "J.R.R. Tolkien", + "publisher": "George Allen \u0026 Unwin", + "id": 8, + "title": "The Hobbit", + "genre": "Fantasy", + "releaseDate": "1937-09-21", + "available": true + }, + { + "author": "J.D. Salinger", + "publisher": "Little, Brown and Company", + "id": 9, + "title": "The Catcher in the Rye", + "genre": "Coming-of-age", + "releaseDate": "1951-07-16", + "available": false + }, + { + "author": "C.S. Lewis", + "publisher": "Geoffrey Bles", + "id": 10, + "title": "The Chronicles of Narnia: The Lion, the Witch, and the Wardrobe", + "genre": "Fantasy", + "releaseDate": "1950-10-16", + "available": true + } + ], + "games": [ + { + "publisher": "Nintendo", + "id": 1, + "title": "The Legend of Zelda: Breath of the Wild", + "genre": "Action-Adventure", + "releaseDate": "2017-03-03", + "available": true + }, + { + "publisher": "Rockstar Games", + "id": 2, + "title": "Red Dead Redemption 2", + "genre": "Action-Adventure", + "releaseDate": "2018-10-26", + "available": true + }, + { + "publisher": "CD Projekt", + "id": 3, + "title": "The Witcher 3: Wild Hunt", + "genre": "Action-RPG", + "releaseDate": "2015-05-19", + "available": true + }, + { + "publisher": "Nintendo", + "id": 4, + "title": "Super Mario Odyssey", + "genre": "Platformer", + "releaseDate": "2017-10-27", + "available": true + }, + { + "publisher": "Santa Monica Studio", + "id": 5, + "title": "God of War (2018)", + "genre": "Action-Adventure", + "releaseDate": "2018-04-20", + "available": true + }, + { + "publisher": "Rockstar Games", + "id": 6, + "title": "Grand Theft Auto V", + "genre": "Action-Adventure", + "releaseDate": "2013-09-17", + "available": true + }, + { + "publisher": "Mojang Studios", + "id": 7, + "title": "Minecraft", + "genre": "Sandbox", + "releaseDate": "2011-11-18", + "available": true + }, + { + "publisher": "Naughty Dog", + "id": 8, + "title": "The Last of Us Part II", + "genre": "Action-Adventure", + "releaseDate": "2020-06-19", + "available": true + }, + { + "publisher": "Bethesda Game Studios", + "id": 9, + "title": "Fallout 4", + "genre": "Action-RPG", + "releaseDate": "2015-11-10", + "available": true + }, + { + "publisher": "Ubisoft Montreal", + "id": 10, + "title": "Assassin\u0027s Creed Valhalla", + "genre": "Action-Adventure", + "releaseDate": "2020-11-10", + "available": true + } + ], + "movies": [ + { + "director": "Christopher Nolan", + "cast": "Leonardo DiCaprio, Joseph Gordon-Levitt", + "id": 1, + "title": "Inception", + "genre": "Sci-Fi", + "releaseDate": "2010-07-16", + "available": true + }, + { + "director": "Frank Darabont", + "cast": "Tim Robbins, Morgan Freeman", + "id": 2, + "title": "The Shawshank Redemption", + "genre": "Drama", + "releaseDate": "1994-09-23", + "available": true + }, + { + "director": "Christopher Nolan", + "cast": "Christian Bale, Heath Ledger", + "id": 3, + "title": "The Dark Knight", + "genre": "Action", + "releaseDate": "2008-07-18", + "available": true + }, + { + "director": "Quentin Tarantino", + "cast": "John Travolta, Uma Thurman", + "id": 4, + "title": "Pulp Fiction", + "genre": "Crime", + "releaseDate": "1994-10-14", + "available": true + }, + { + "director": "Francis Ford Coppola", + "cast": "Marlon Brando, Al Pacino", + "id": 5, + "title": "The Godfather", + "genre": "Crime", + "releaseDate": "1972-03-24", + "available": true + }, + { + "director": "David Fincher", + "cast": "Brad Pitt, Edward Norton", + "id": 6, + "title": "Fight Club", + "genre": "Drama", + "releaseDate": "1999-10-15", + "available": true + }, + { + "director": "Lana Wachowski, Lilly Wachowski", + "cast": "Keanu Reeves, Laurence Fishburne", + "id": 7, + "title": "The Matrix", + "genre": "Sci-Fi", + "releaseDate": "1999-03-31", + "available": true + }, + { + "director": "Robert Zemeckis", + "cast": "Tom Hanks, Robin Wright", + "id": 8, + "title": "Forrest Gump", + "genre": "Drama", + "releaseDate": "1994-07-06", + "available": true + }, + { + "director": "Peter Jackson", + "cast": "Elijah Wood, Ian McKellen", + "id": 9, + "title": "The Lord of the Rings: The Fellowship of the Ring", + "genre": "Fantasy", + "releaseDate": "2001-12-19", + "available": true + }, + { + "director": "Joss Whedon", + "cast": "Robert Downey Jr., Chris Evans", + "id": 10, + "title": "The Avengers", + "genre": "Action", + "releaseDate": "2012-04-11", + "available": true + } + ] +} \ No newline at end of file diff --git a/RentalProject/target/classes/org/example/AllModules.class b/RentalProject/target/classes/org/example/AllModules.class new file mode 100644 index 0000000000000000000000000000000000000000..7b9ebee2a5909f093a2ff09e0d3715a7a2e960a0 GIT binary patch literal 2255 zcma)++iuf95QfJ&C%8?I=>ZC)P)O3IZc90)R4SF=CIv)M@14{NE>2uIPDS4eBoGo8 zJOB@c_{ZzGiM6J_$YjTvfBtXRll}Ae*KZ=)rI!WD(c?U2=?RCY9G-D_&f!It8d=&? zDBm9RUAt>IeTC+mXZnS%4P4XG4jf0nY?^(yftq8p)6?C7V<=RY)$BEGr=uBP^zON3 zXor5s#y+&^mTiAV@9OosSEv-4j@~umY2KjH(`35#g~_7Y^+rcr>Z!7h(Q|bRvi0j_ zAG})OwrBQCcVD4orFx=J>d-#L*%X^*&v-lNwhZT^-m>syrfIiz>qK`<&i#ie_mc_7 z#j!&>u&g8dbYK~M9GcoO+~Fyra-kwUJrrv4U;gtx)c#oO#fog-4c=5~oc;2A$iF4k zM0#?s95%$Smk&A)axe-x;QGRi7`DD{XvxzN*D{zSw)BN@EPWkY=CMm}w&1xDXPZ}p zn1|_5T92{Op^|M2uobfj-+CP1kx4GVI1q2fa1OMd^|3v0+Qw^>hrM_;!<&4Os5DO{ zmGV?jX@WzM!!(CkDqz4yFO4g$LQ~!~Wa+(*_O5kiv|TFW%F5wdOH+dTkwQ0+B}l~w zt%H0LIb4E#3ONjedS2l_|L6ZUM1FRlOQBz^m zl}OYInpEYesW568sH+jEVwy%#i!>FW*05TaqNc;BYmulMXi}G>ro*UJpw=Q##h{O( yPGeYx1F(seCPmGJQR|VYTWGQ^N6my$w}HA7fhzukqo}hq7ohH7^$2sEpxuA8nXXy@ literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/Book.class b/RentalProject/target/classes/org/example/Book.class new file mode 100644 index 0000000000000000000000000000000000000000..6c31859c1524aa30ec3d2c1cb3038beb696e5c44 GIT binary patch literal 959 zcma)4U279T6g{)qd~CY5H8!nr{ixqb{K$)MilBx`kc@72%VZ+{7ypEU zLGZyJ;Exi|Oahf8poHAH_sqTLoV~lhe*gFh;0an)l&~M6h?_3la^ZFvcgnacP?A$S z%8fv+|6YESom6JS&XF}b8$K0?&ZdJ@PezIjrDr9I80)eA7RBR%nVX4p}mzYt^Md%$C>Z%LpBVK%wdU zSB533-{3!*v^-pVF{X3w*GVB&Pzls zozB-M-eI5by2P&_;E&oqqdd z>W42d?y?!Ab3|K=brM}6)h5w5o;)GG&5DG$h#Ey)c8Pa^&vuvTviBMWz#P4JUXaWcqwWY3XWB) zDFp0-g4$xpu_~@vVra@6JlD>J+oq2eW)s zva&CAzU4I{BP({rcF8f9KF{v|B3qd~w!B#_kW6pRu2|dk^1kJ~GWSbbglgU_?U{}( z&&^=SJ+Rr{@EMky^_p8PTaJiSwA?MK5lm-94?b;cMF-QF^Bfhrc;TrhtGGL!vT?c_ zEpg*D%k^Yn-H~SR9lA;%q|{FL_^3sB&KGlm&XP&WpH@t^h_r*)A zkW8NuusLQa9&z-@6$broD0J_-X8zrC^QbwH_-?iC<%}R8jOYb~ls?HzpQNTwvg1ht7@{54u_R*jM=(k|#>htmnG2XUPN0nG z1_H)R13_c9fsip8Y9MS3g&T+%KM;L$g02Q)Uv#1?w3Fzf?L~-^#6%GhguhXioM2G{ zNu+pV%`1Vc80Qm^vpfYEHohYAiB14QC8C34 zx?IA$&@88@*(4*E zhoYBchDl~I*Bp<<`3uz)XB+#4p0=fv$n-bFU(5D+4fN|BS>bnQm3z0wrqBRKixZY16ceEvI9Jc literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/Game.class b/RentalProject/target/classes/org/example/Game.class new file mode 100644 index 0000000000000000000000000000000000000000..c443844c26388bb8f0bdb1d7bb2ab7ece93999f2 GIT binary patch literal 901 zcma)3Ur!T35dY2fuBGJ^EO1gmMR;i|dM~_bc)_SmsxiUzeGBWc=6cs`x5kga$I(P$ z!UG?G4`rOWHelK&a+mDR%+Bx6&R+kyyaI55y&3{MuENI?S)Nv~Q^7OB(lAx-OKt~* zdiSgPrs7m(Nqp?A$&y!u>Tujo&FD;9Lix4Hj5{QJXm;j%=PP$=YV`>IQGTikD_xW6 zkK;jK+s~?>a;4tQPgL4d)<`}r`tHn(iZh$U`nwtoQysrk1I>0lb4s8NA#lbCLy+jq z^1f_!s?|upQBJZ%yH7V4UvIYN%@aaty1l(`b>;}ArZ}!y?Z!6iIL(8r9p__vqTd=3 ztcsJDGRY8C?1m_#5@HDz!fHNac&0RAYu$0UtsZvxB?Eq5kAIdaB39x(06RgA*JaMm zIhShG-r9e$;r|A;8^Hy*v;FiwywjNCwodt7-xLE}DG<%_V22h1%| zozJ`?TH~lxMC*JiOi|%V97Zw$&WJgqsjHZG;RxEl;QiphV>uK}U?C9>Ck<0!!o!8& o(kyswA$Svwsq%BC7G=7y4?{{hmC>ZAVyw-*Apn9{@cUk6s2l>h($ literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/Item.class b/RentalProject/target/classes/org/example/Item.class new file mode 100644 index 0000000000000000000000000000000000000000..4169f07bebc12c898e69362505572b51c5434156 GIT binary patch literal 1138 zcmZuv+iuf95IyTScAYp$Nt04&DNQNVF>TEyZ=gyD1hN!SiB^5++a_ItDohRRjREJ-{LmVjY z(8iICfWe3^8Cb}WmywJGL$!UyuXzyjK`%I!Ni^s^qsN{YB=lHJL@fA7yyB8>4kbo0 z?#)hnIw}w4;G|JMMQxa+X%CwufCFpYtSA_i50S zAEJ>WIZS$i_{94kV-bW>^iz^DBsDp&NqSa#LY}3PYF=}>d7AMi)m5hCck|MU(dflY z991NF?nubFpy^#G{?LoOP$b%#EWJcufa zj^&Am<-UVETs>x)ng70L4^NZlEOz?Il z*j@zhWPnvZEhYOI#ppfOulK}Yv#A)cO$$l99S)NQh_yhb= z#<%E2J=mmuZzj_>)4qSaz5zJJo{J*3Dri-(%~0+uqtXFGvD2M0I72&^40T@_d7VWw z8BfGa6Vvog+PI?Tru?mey zvzVrx`GJjiXl+P}FtLWm@>a_r<&&qSoY;G5`ah#W4!>&-r4s$(?GMI!-lbN{26C&(su9p|iXq>!?!ieF;#*8X<>pu3E>& Us@Bn1v72bZrOqXFfhth_1i9C7K>z>% literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/Main.class b/RentalProject/target/classes/org/example/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..31a102ba2c71e268c6220a7773c869e85757005a GIT binary patch literal 2841 zcma)8S#T6p6g@A=%$w;nNk~FqB1%BSB#;c7h!YgE0l_51ENEoZbSBMYlAh_<-2vjh zf&0EMWm$e`S>+FwH7QM%#Rot7>A&B8TIDB2iRbmqgdRbQRO&7FzIX1q%ey_l{{7R> z0QTZ@4O?+s;sFg6YJN~dm6|6bct}GSCnS;@qByRGhn4aXiAU8urC|*W4bwrwr@3;bhdl zD6H~kGsK|INyp7IMs~q6<3mO!*F~f(XMv{H6N7WcDI;zfxpaKYb27Pfmv1TKnc08e z9iWVN!>1i;9f8Ke-HaVSl(EbQd@1#Ugx0O929EWgNtp{?#`f(RPMVw=u47i9+A(vU zVU2mVLx@-z@6oF&ML+G@ivD2A&c@TWou+3>6hF*CQFKgWMp3L=d&vZTI{x!i72+i5|vjS_zJR>zfWGwhOli0_)WJyXq&YF{Wf^{bGB+H70BA~5?lJvDP zd(lamD)a(TmDf(iR>wBnF0ejGE)YCs?RqhzufD6rTo!^QFx{I-PPnGyCI`)&eacSu zneM!2FC+_@N?CT!Ocv3XT$V?1Gve5DX39&tPAaKFnN;A(ajqsw`jG9+x3unR>r~-T ze4nEEAYbLo)?GTD#xpve#dFMbP<=I3I-bW1I$p$CiE}z$!prn8c(jxj9k1Z5j#u#- z!>QwSyrJVwyu|_uo>m2}<88d7<6XSRB_zN|q*%%#tA2fnr|)66;}}bW z8P_9pA-d&aHcnnw{tpDfSLsBk?Xm570!LI&D@3cQ%tk4SG$CgVci22bK=$K@_?~nA zrm=KBkSw0A$jq=A4iH+s7FAmU+gr<;juLj2NlLEzT{y%C<}x`UzvGsb#F+owNW@-L z{uPqIq>QkIdkmgws8+pNaRD*iSWt&7)>y5-@_W#@W28)eif-lCQTRPBgW^4M}7LQDuxoMx6Qq0;x2pIaRfrl$@y{B=^x{MRw>wM^bx z>_a{J(11}iVhZcniksL+*Rv^Zz!!+&Yutoyu@S%EX8eX*@H;l)547M=qvGAj3Uk346uUWS~mx zJ92rJtm4=Sjn;}Q;+IxaWVj2vq4Qn{d-yX?R|SVVhyX;0cqjI=KY+hef(i4B#N{B|;y0cB6*{J}NrU%az2G*u-e`5bX%j`iT*agyMLyR pXReU5{=cBKL>t2p5~E>^kxLc*-b|0jxvszjZsV*`7Uj&?`~&`*tC|1+ literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/Movie.class b/RentalProject/target/classes/org/example/Movie.class new file mode 100644 index 0000000000000000000000000000000000000000..7cb25c2c21998d0e03482a23d860067c6e465942 GIT binary patch literal 1158 zcmbVLO>fgc5Ph52ag#V{nkLWyr37ekoHXVmoIqS!0hUsbXw?I^ZL*j}PK+EU;%9+` z1?qtxz>h-A+7YS}pOB@uGoyJkZ)VrO|6Kk8Fu>Ci%D7iV3HKH3D>zW_pacsYW!Vb4 z3VH?(4fGi{#xfM6CQ22t+#4(S^V=hBZj%i{~L}zJc!|JSSPcvREYf$p>zYQ7W9VPpy zlJ)Lt`O;}H4@csqR0>Loq`q3GiA^{ruAyS$x&l){6%_*yO+3P56FVw$11%FzFkskP zn~kA%HReWQ!qBnYb?xhsWXZMFi)Ant+@FiL9~hdJo4JJ|sh56w8SFjU^lHlV&~o(A z42eZ!&{+W8A8LeKm;d7pu89x zHpPnHlB#vW0~85O>RF-MRWt}&)MJl&Sg50qZQ53Y5O|&TBdIz27O}myiKI--NmXR;fx1k_bX}6qa z-LMr*_M8`dKVww0sz50zh}%ZP(XFEH7z&2VC;A6H-*!wZFCGT++-chl?>w?;HcV$r z!D6Nd*uA*Nb8%HEdqB2@W|i=%ve_{9+VvyDey1N<^pJl=w+?jMl)di^Imc#8!FUhg zTbCvYg=>aWBKd(#mh_{tbEO#1WP1{PF@_j$PDa60An5#rxCsV&mw2^~GW3!fUQkDn zM5{MxEECL;^1Y}|R;cQ!&C)Avi|aDSu0cKG`^~mpF?LN6XUL z>!TB+;<(zgEYW^Xual{0--+6HY_n0Lq%j8U)OFMHmT!)m4XKgd?P}FFT5NLJ7tDqC z6E8#kkB1KpH~EQ-@OumMBcmu>sZydlvr5i<0!X_v3+6mX&or*l&T#h$F@!i5b7xR; zKcOC;Vc-;@+`=is+(!-K;~3yGC0Nl?S4HYY7w@_4y8jpb+95aq literal 0 HcmV?d00001 diff --git a/RentalProject/target/classes/org/example/RentalStore.class b/RentalProject/target/classes/org/example/RentalStore.class new file mode 100644 index 0000000000000000000000000000000000000000..4f4dfc5e9f45402486ee441168490c9c0967d367 GIT binary patch literal 2812 zcma)8T~`xV6x}xo3`qt-2nY&_1!*8e`k_?;sfZtq4QRnawVy+n;%G?dWT4W%_O(xa z^36A2ZCwkNb*-*G_eb=l|Dvm{-RI6EOlWAkver%RopbitXP+g0|R#wXvJOGe3(ENK9cRn20lrk z19{neYTz?@Vo8i8uqy@%238fC9M4{_D75GATU*xnrsovL^G?N^RERG+YbDFubZv#9 zeUGQ|Wp{1derT<46z%aGF(#)arLbA?%ImgE#Pq+W%m#rvE#cZF&nik?g|1NEjO$w4 z0i8^v^Lic&8b(7lPdO#Wn^uUXN0t;~v*lH`(Ux~g_Wb7hitXOER*F37$d?ONamjKW z*$0O)@1DaBdh43>!56)qR`zqiZRye>RfrtA)Bsx zD6OleFH_QF_p7cz@z%>*w!|tNUbDTKEz2oNH*&-_I?^K{=>j!dIqkhD%`U9N_C{5U z)}r37`9=rQjDPTvSYWm^HD9ErmmS^{-eSt9^-w6gQk+6~e?ezA|wV zuP7V|2ZUN9BMn%zN^9dcSMJ*d-sDgX|7v&a6{T#h#k<4{O8aZ)?+2J1xvS?c?xw&_ zEu*{6d{rdQ%eZG%=Iw_p&0EjpSV?bE)%XxQMkk$0?W!n@)q6&dwXrX9VkEN?x@fGF zzALA3_TsBTGJ$WXD(i=J)7T2Fgjmq7l?l)i;crYiniR+;fuTU`D90J}@>c?gA|YOZ zLO*vA9Os_4sqF_4mwDCpgM7{}ah&2h%#20mD8BcP?m~?&zd+>9E~3v63w>_-UPHgi zwF9wW?L<3LEYyWGPfQ;KBN*jQA%n4?z*QEA@T_%o`3E#*o})Q}^}hVb-bY=-#i%7XuxuSkSG5G@(j+h15x%F-$ks6 zK-0Vk5POamg}Jfkh$}q834TZ@{EXy$b_eDoBr{oGp(ihY%{*mx3?lncG; zSC*$|snL1LE%Fc02g7KCG#2H4BG9je`?s_k&hb=+Xr{vEl587wn0RbjzSHR+GWfJ z1aA>QT$Ccg!(`Exd4UevxN`@oJ*ORF6mX6ToJS`vgyxv46-;Ro;K@!u;y@ c%AlSIkgR>9^vEcb_C_<`eLLRZdj#+P4Rz*4uK)l5 literal 0 HcmV?d00001