Changeset e294983
- Timestamp:
- 02/05/23 17:43:38 (21 months ago)
- Branches:
- main
- Children:
- 4d78603
- Parents:
- 8ae6217 (diff), d546868 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- Prototype Application/Paw5/src/main/java/finki/paw5/model
- Files:
-
- 5 added
- 1 deleted
- 5 edited
- 16 moved
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Admin.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import jakarta.persistence.*; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adopter.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import finki.paw5.model.enumerations.FreeTime; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adoption.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 16 13 17 14 @Id 15 @GeneratedValue(strategy = GenerationType.IDENTITY) 18 16 @Column(name = "id_adoption") 19 private intid;17 private Integer id; 20 18 21 19 @Column(name = "start_date", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Category.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 13 10 14 11 @Id 12 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 13 @Column(name = "id_category") 16 private intid;14 private Integer id; 17 15 18 16 @Column(name = "name_category", nullable = false, length = 100) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Donor.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import jakarta.persistence.*; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Employee.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import jakarta.persistence.*; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Food.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import finki.paw5.model.enumerations.FoodType; 4 import jakarta.persistence.Column; 5 import jakarta.persistence.Entity; 6 import jakarta.persistence.Id; 7 import jakarta.persistence.Table; 4 import jakarta.persistence.*; 8 5 import lombok.Data; 9 6 … … 14 11 15 12 @Id 13 @GeneratedValue(strategy = GenerationType.IDENTITY) 16 14 @Column(name = "id_food") 17 private intid;15 private Integer id; 18 16 19 17 @Column(name = "manufacturer", nullable = false, length = 100) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Organisation.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 13 10 14 11 @Id 12 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 13 @Column(name = "id_organisation") 16 private intid;14 private Integer id; 17 15 18 16 @Column(name = "name_organisation", nullable = false, length = 100) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/PersonalProfile.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import finki.paw5.model.enumerations.*; … … 15 15 @Id 16 16 @Column(name = "id_pet", nullable = false) 17 private intid;17 private Integer id; 18 18 19 19 @Column(name = "friendly_to_kids", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Pet.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import finki.paw5.model.enumerations.AgeGroup; … … 5 5 import finki.paw5.model.enumerations.Size; 6 6 import finki.paw5.model.enumerations.Species; 7 import jakarta.persistence.Column; 8 import jakarta.persistence.Entity; 9 import jakarta.persistence.Id; 10 import jakarta.persistence.Table; 7 import jakarta.persistence.*; 11 8 import lombok.Data; 12 9 … … 17 14 18 15 @Id 16 @GeneratedValue(strategy = GenerationType.IDENTITY) 19 17 @Column(name = "id_pet") 20 private intid;18 private Integer id; 21 19 22 20 @Column(name = "url_pet_image", length = 200) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Post.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 16 13 17 14 @Id 15 @GeneratedValue(strategy = GenerationType.IDENTITY) 18 16 @Column(name = "id_post") 19 private intid;17 private Integer id; 20 18 21 19 @Column(name="date_post", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Shelter.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 13 10 14 11 @Id 12 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 13 @Column(name = "id_shelter") 16 private intid;14 private Integer id; 17 15 18 16 @Column(name = "address_shelter", nullable = false, length = 100) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Surendee.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import jakarta.persistence.*; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Therapy.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 16 13 17 14 @Id 15 @GeneratedValue(strategy = GenerationType.IDENTITY) 18 16 @Column(name = "id_therapy") 19 private intid;17 private Integer id; 20 18 21 19 @Column(name = "health_problem", nullable = false, length = 100) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/User.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 3 import jakarta.persistence.*; … … 14 14 15 15 @Id 16 @GeneratedValue(strategy = GenerationType.IDENTITY) 16 17 @Column(name = "id_user") 17 protected intid;18 protected Integer id; 18 19 19 20 @Column(name = "date_created_user", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java
r8ae6217 re294983 1 package finki.paw5.model ;1 package finki.paw5.model.entities; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 13 10 14 11 @Id 12 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 13 @Column(name = "id_vet_clinic") 16 private intid;14 private Integer id; 17 15 18 16 @Column(name = "telephone_vet_clinic", nullable = false, length = 20) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/DonorDonatesToOrganisation.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 10 7 @Entity 11 8 @Table(name = "donor_donates_to_organisation") 9 @IdClass(DonorDonatesToOrganisationId.class) 12 10 public class DonorDonatesToOrganisation { 13 11 14 12 @Id 15 13 @Column(name="id_user", nullable = false) 16 private intuserId;14 private Integer userId; 17 15 18 16 @Id 19 17 @Column(name="id_organisation", nullable = false) 20 private intorganisationId;18 private Integer organisationId; 21 19 22 20 public DonorDonatesToOrganisation(int userId, int organisationId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetBelongsToCategory.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 10 7 @Entity 11 8 @Table(name = "pet_belongs_to_category") 9 @IdClass(PetBelongsToCategoryId.class) 12 10 public class PetBelongsToCategory { 13 11 14 12 @Id 15 13 @Column(name="id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name="id_category", nullable = false) 20 private intcategoryId;18 private Integer categoryId; 21 19 22 20 public PetBelongsToCategory(int petId, int categoryId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 13 10 @Entity 14 11 @Table(name = "pet_needs_intervention_in_vet_clinic") 12 @IdClass(PetNeedsInterventionInVetClinicId.class) 15 13 public class PetNeedsInterventionInVetClinic { 16 14 17 15 @Id 18 16 @Column(name = "id_pet", nullable = false) 19 private intpetId;17 private Integer petId; 20 18 21 19 @Id 22 20 @Column(name = "id_vet_clinic", nullable = false) 23 private intvetClinicId;21 private Integer vetClinicId; 24 22 25 23 @Column(name = "date_of_interventing", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 10 7 @Entity 11 8 @Table(name = "pet_needs_therapy") 9 @IdClass(PetNeedsTherapyId.class) 12 10 public class PetNeedsTherapy { 13 11 14 12 @Id 15 13 @Column(name="id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name="id_therapy", nullable = false) 20 private inttherapyId;18 private Integer therapyId; 21 19 22 20 public PetNeedsTherapy(int petId, int therapyId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetPreferablyEatsFood.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 10 7 @Entity 11 8 @Table(name = "pet_preferably_eats_food") 9 @IdClass(PetPreferablyEatsFoodId.class) 12 10 public class PetPreferablyEatsFood { 13 11 14 12 @Id 15 13 @Column(name = "id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name = "id_food", nullable = false) 20 private intfoodId;18 private Integer foodId; 21 19 22 20 @Column(name = "quantity_a_day", nullable = false)
Note:
See TracChangeset
for help on using the changeset viewer.