Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
53 changes: 53 additions & 0 deletions src/main/java/com/codesnippet/ecom/angad/Employee.java
Original file line number Diff line number Diff line change
@@ -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 + '\'' +
'}';
}
}
5 changes: 5 additions & 0 deletions src/main/java/com/codesnippet/ecom/angad/Product.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.codesnippet.ecom.angad;

public class Product {

}