BAEL-21597: Migrate spring-rest-angular to com.baeldung

This commit is contained in:
Krzysztof Woyke
2020-01-31 13:11:57 +01:00
parent 0397432e14
commit b2c643546f
13 changed files with 29 additions and 29 deletions
@@ -1,6 +1,6 @@
package org.baeldung.web.dao;
package com.baeldung.web.dao;
import org.baeldung.web.entity.Student;
import com.baeldung.web.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
public interface StudentRepository extends JpaRepository<Student, Long>
@@ -1,4 +1,4 @@
package org.baeldung.web.entity;
package com.baeldung.web.entity;
import java.io.Serializable;
@@ -1,4 +1,4 @@
package org.baeldung.web.exception;
package com.baeldung.web.exception;
public class MyResourceNotFoundException extends RuntimeException {
@@ -1,4 +1,4 @@
package org.baeldung.web.main;
package com.baeldung.web.main;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -1,4 +1,4 @@
package org.baeldung.web.main;
package com.baeldung.web.main;
import javax.sql.DataSource;
@@ -12,9 +12,9 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
@EnableJpaRepositories("org.baeldung.web.dao")
@ComponentScan(basePackages = { "org.baeldung.web" })
@EntityScan("org.baeldung.web.entity")
@EnableJpaRepositories("com.baeldung.web.dao")
@ComponentScan(basePackages = { "com.baeldung.web" })
@EntityScan("com.baeldung.web.entity")
@Configuration
public class PersistenceConfig {
@@ -1,8 +1,8 @@
package org.baeldung.web.rest;
package com.baeldung.web.rest;
import org.baeldung.web.entity.Student;
import org.baeldung.web.exception.MyResourceNotFoundException;
import org.baeldung.web.service.StudentService;
import com.baeldung.web.entity.Student;
import com.baeldung.web.exception.MyResourceNotFoundException;
import com.baeldung.web.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -1,4 +1,4 @@
package org.baeldung.web.service;
package com.baeldung.web.service;
import org.springframework.data.domain.Page;
@@ -0,0 +1,7 @@
package com.baeldung.web.service;
import com.baeldung.web.entity.Student;
public interface StudentService extends IOperations<Student> {
}
@@ -1,7 +1,7 @@
package org.baeldung.web.service;
package com.baeldung.web.service;
import org.baeldung.web.dao.StudentRepository;
import org.baeldung.web.entity.Student;
import com.baeldung.web.dao.StudentRepository;
import com.baeldung.web.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
@@ -1,7 +0,0 @@
package org.baeldung.web.service;
import org.baeldung.web.entity.Student;
public interface StudentService extends IOperations<Student> {
}