Merge pull request #6589 from tinomthomas/master

BAEL - 2829
This commit is contained in:
Eric Martin
2019-03-30 23:44:24 -05:00
committed by GitHub
3 changed files with 84 additions and 0 deletions
@@ -0,0 +1,9 @@
package com.baeldung.dao.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.baeldung.domain.Employee;
public interface EmployeeRepository extends JpaRepository<Employee, Long> {
}
@@ -0,0 +1,36 @@
package com.baeldung.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Employee {
@Id
private Long id;
private String name;
public Employee() {
}
public Employee(Long id, String name) {
this.id = id;
this.name = name;
}
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;
}
}