Changes in / [eef07ff:65f9c71]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 14 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adopter.java
reef07ff r65f9c71 23 23 24 24 @Column(name = "has_other_pets") 25 private Boolean hasOtherPets;25 private boolean hasOtherPets; 26 26 27 27 @Column(name = "has_kids") 28 private Boolean hasKids;28 private boolean hasKids; 29 29 30 30 @Column(name = "housing") … … 35 35 36 36 @Column(name = "will_foster") 37 private Boolean willFoster;37 private boolean willFoster; 38 38 39 39 @Column(name = "is_verified", nullable = false) 40 private Boolean verified;40 private boolean verified; 41 41 42 42 @Column(name = "verified_by_employee") 43 private IntegerverifiedByEmployeeId;43 private int verifiedByEmployeeId; 44 44 45 45 public Adopter(LocalDate dateCreated, String name, String email, String password, String telephone, 46 46 FreeTime freeTime, Funds funds, boolean hasOtherPets, boolean hasKids, Housing housing, 47 PhysicalActivity physicalActivity, boolean willFoster, boolean verified ) {47 PhysicalActivity physicalActivity, boolean willFoster, boolean verified, int verifiedByEmployeeId) { 48 48 super(dateCreated, name, email, password, telephone); 49 49 this.freeTime = freeTime; … … 55 55 this.willFoster = willFoster; 56 56 this.verified = verified; 57 this.verifiedByEmployeeId = verifiedByEmployeeId; 57 58 } 58 59 -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Employee.java
reef07ff r65f9c71 16 16 17 17 @Column(name = "id_shelter", nullable = false) 18 private IntegershelterId;18 private int shelterId; 19 19 20 20 @Column(name = "is_verified", nullable = false) … … 22 22 23 23 @Column(name = "verified_by_admin") 24 private IntegerverifiedByAdminId;24 private int verifiedByAdminId; 25 25 26 26 public Employee(LocalDate dateCreated, String name, String email, String password, String telephone, 27 String position, int shelterId, boolean verified ) {27 String position, int shelterId, boolean verified, int verifiedByAdminId) { 28 28 super(dateCreated, name, email, password, telephone); 29 29 this.position = position; 30 30 this.shelterId = shelterId; 31 31 this.verified = verified; 32 this.verifiedByAdminId = verifiedByAdminId; 32 33 } 33 34 -
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Shelter.java
reef07ff r65f9c71 21 21 22 22 @Column(name = "id_organisation") 23 private IntegerorganisationId;23 private int organisationId; 24 24 25 25 @Column(name = "name_shelter", nullable = false, length = 100) … … 29 29 private String email; 30 30 31 public Shelter(String address, String telephone, IntegerorganisationId, String name, String email) {31 public Shelter(String address, String telephone, int organisationId, String name, String email) { 32 32 this.address = address; 33 33 this.telephone = telephone; -
Prototype Application/Paw5/src/main/java/finki/paw5/repository/AdopterRepository.java
reef07ff r65f9c71 5 5 import org.springframework.stereotype.Repository; 6 6 7 8 7 @Repository 9 8 public interface AdopterRepository extends JpaRepository<Adopter, Integer> { -
Prototype Application/Paw5/src/main/java/finki/paw5/repository/EmployeeRepository.java
reef07ff r65f9c71 2 2 3 3 import finki.paw5.model.entities.Employee; 4 import finki.paw5.model.entities.Shelter;5 4 import org.springframework.data.jpa.repository.JpaRepository; 6 5 import org.springframework.stereotype.Repository; 7 8 import java.util.List;9 6 10 7 @Repository -
Prototype Application/Paw5/src/main/java/finki/paw5/repository/ShelterRepository.java
reef07ff r65f9c71 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.List;8 9 7 @Repository 10 8 public interface ShelterRepository extends JpaRepository<Shelter, Integer> { -
Prototype Application/Paw5/src/main/java/finki/paw5/repository/UserRepository.java
reef07ff r65f9c71 5 5 import org.springframework.stereotype.Repository; 6 6 7 8 7 @Repository 9 8 public interface UserRepository extends JpaRepository<User, Integer> { 10 User findByEmailAndPassword(String email, String password);11 User findByEmail(String email);12 9 }
Note:
See TracChangeset
for help on using the changeset viewer.