[R1] Remove lombok, it is not working
This commit is contained in:
parent
3a9e24387f
commit
8d7402cab5
5
pom.xml
5
pom.xml
@ -28,11 +28,6 @@
|
|||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
|||||||
@ -3,14 +3,14 @@ package com.mirna.hospitalmanagementapi.domain.entities;
|
|||||||
import com.mirna.hospitalmanagementapi.domain.dtos.AddressDTO;
|
import com.mirna.hospitalmanagementapi.domain.dtos.AddressDTO;
|
||||||
|
|
||||||
import jakarta.persistence.Embeddable;
|
import jakarta.persistence.Embeddable;
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class Address {
|
public class Address {
|
||||||
|
|
||||||
|
public Address() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public Address(AddressDTO addressDTO) {
|
public Address(AddressDTO addressDTO) {
|
||||||
this.street = addressDTO.street();
|
this.street = addressDTO.street();
|
||||||
this.neighborhood = addressDTO.neighborhood();
|
this.neighborhood = addressDTO.neighborhood();
|
||||||
@ -28,4 +28,61 @@ public class Address {
|
|||||||
private String state;
|
private String state;
|
||||||
private String additionalDetails;
|
private String additionalDetails;
|
||||||
private String houseNumber;
|
private String houseNumber;
|
||||||
|
|
||||||
|
public String getStreet() {
|
||||||
|
return street;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStreet(String street) {
|
||||||
|
this.street = street;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNeighborhood() {
|
||||||
|
return neighborhood;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNeighborhood(String neighborhood) {
|
||||||
|
this.neighborhood = neighborhood;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZipCode() {
|
||||||
|
return zipCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZipCode(String zipCode) {
|
||||||
|
this.zipCode = zipCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCity() {
|
||||||
|
return city;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCity(String city) {
|
||||||
|
this.city = city;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getState() {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setState(String state) {
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAdditionalDetails() {
|
||||||
|
return additionalDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdditionalDetails(String additionalDetails) {
|
||||||
|
this.additionalDetails = additionalDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHouseNumber() {
|
||||||
|
return houseNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHouseNumber(String houseNumber) {
|
||||||
|
this.houseNumber = houseNumber;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,17 +11,9 @@ import jakarta.persistence.GeneratedValue;
|
|||||||
import jakarta.persistence.GenerationType;
|
import jakarta.persistence.GenerationType;
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
import jakarta.persistence.Table;
|
import jakarta.persistence.Table;
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
@Table(name="doctors")
|
@Table(name="doctors")
|
||||||
@Entity(name="Doctor")
|
@Entity(name="Doctor")
|
||||||
@Getter
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(of="id")
|
|
||||||
public class Doctor {
|
public class Doctor {
|
||||||
|
|
||||||
public Doctor(DoctorDTO doctorDTO) {
|
public Doctor(DoctorDTO doctorDTO) {
|
||||||
@ -45,4 +37,60 @@ public class Doctor {
|
|||||||
@Embedded
|
@Embedded
|
||||||
private Address address;
|
private Address address;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmail() {
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCrm() {
|
||||||
|
return crm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCrm(String crm) {
|
||||||
|
this.crm = crm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelephone() {
|
||||||
|
return telephone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelephone(String telephone) {
|
||||||
|
this.telephone = telephone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Speciality getSpeciality() {
|
||||||
|
return speciality;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpeciality(Speciality speciality) {
|
||||||
|
this.speciality = speciality;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Address getAddress() {
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAddress(Address address) {
|
||||||
|
this.address = address;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user