BAEL-2829: Moving to spring-data-jpa-2

This commit is contained in:
eric-martin 2019-04-01 22:35:07 -05:00
parent c408e85d88
commit 006a51892d
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.domain; package com.baeldung.entity;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;

View File

@ -1,8 +1,8 @@
package com.baeldung.dao.repositories; package com.baeldung.repository;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import com.baeldung.domain.Employee; import com.baeldung.entity.Employee;
public interface EmployeeRepository extends JpaRepository<Employee, Long> { public interface EmployeeRepository extends JpaRepository<Employee, Long> {

View File

@ -1,4 +1,4 @@
package com.baeldung.dao.repositories; package com.baeldung.repository;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.domain.Employee; import com.baeldung.entity.Employee;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@DataJpaTest @DataJpaTest