diff --git a/pom.xml b/pom.xml index 9c6d713..0ab19c2 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,12 @@ spring-boot-starter-test test - + + org.projectlombok + lombok + provided + + diff --git a/src/main/java/com/codesnippet/ecom/Service/ProductService.java b/src/main/java/com/codesnippet/ecom/Service/ProductService.java index 8c1bb6b..cbea10f 100644 --- a/src/main/java/com/codesnippet/ecom/Service/ProductService.java +++ b/src/main/java/com/codesnippet/ecom/Service/ProductService.java @@ -2,7 +2,7 @@ import com.codesnippet.ecom.Entity.Product; import com.codesnippet.ecom.Repository.ProductRepository; -import com.codesnippet.ecom.customAnnotations.LogExecutionTime; +//import com.codesnippet.ecom.customAnnotations.LogExecutionTime; import lombok.extern.slf4j.Slf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/codesnippet/ecom/angad/Employee.java b/src/main/java/com/codesnippet/ecom/angad/Employee.java new file mode 100644 index 0000000..156c577 --- /dev/null +++ b/src/main/java/com/codesnippet/ecom/angad/Employee.java @@ -0,0 +1,53 @@ +package com.codesnippet.ecom.angad; + +import jakarta.persistence.Entity; + +@Entity +public class Employee { + private int id; + private String name; + private String department; + + // Constructors + public Employee() {} + + public Employee(int id, String name, String department) { + this.id = id; + this.name = name; + this.department = department; + } + + // Getters and Setters + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDepartment() { + return department; + } + + public void setDepartment(String department) { + this.department = department; + } + + @Override + public String toString() { + return "Employee{" + + "id=" + id + + ", name='" + name + '\'' + + ", department='" + department + '\'' + + '}'; + } +} diff --git a/src/main/java/com/codesnippet/ecom/angad/Product.java b/src/main/java/com/codesnippet/ecom/angad/Product.java new file mode 100644 index 0000000..c12fcdf --- /dev/null +++ b/src/main/java/com/codesnippet/ecom/angad/Product.java @@ -0,0 +1,5 @@ +package com.codesnippet.ecom.angad; + +public class Product { + +}