[JAVA-29082] Split-or-move-spring-data-jpa-repo-module (#16252)

* [JAVA-29082] Split-or-move-spring-data-jpa-repo-module

* [JAVA-29082] Split-or-move-spring-data-jpa-repo-module
This commit is contained in:
vunamtien 2024-03-29 17:26:43 +07:00 committed by GitHub
parent 2df107ef2b
commit a6ea78aa47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 15 additions and 17 deletions

View File

@ -7,4 +7,6 @@
- [Difference Between JPA and Spring Data JPA](https://www.baeldung.com/spring-data-jpa-vs-jpa) - [Difference Between JPA and Spring Data JPA](https://www.baeldung.com/spring-data-jpa-vs-jpa)
- [Differences Between Spring Data JPA findFirst() and findTop()](https://www.baeldung.com/spring-data-jpa-findfirst-vs-findtop) - [Differences Between Spring Data JPA findFirst() and findTop()](https://www.baeldung.com/spring-data-jpa-findfirst-vs-findtop)
- [Difference Between findBy and findAllBy in Spring Data JPA](https://www.baeldung.com/spring-data-jpa-find-by-vs-find-all-by) - [Difference Between findBy and findAllBy in Spring Data JPA](https://www.baeldung.com/spring-data-jpa-find-by-vs-find-all-by)
- [Calling Stored Procedures from Spring Data JPA Repositories](https://www.baeldung.com/spring-data-jpa-stored-procedures)
- More articles: [[<-- prev]](../spring-data-jpa-repo) - More articles: [[<-- prev]](../spring-data-jpa-repo)

View File

@ -1,4 +1,4 @@
package com.baeldung.storedprocedure; package com.baeldung.spring.data.persistence.storedprocedure;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,14 +1,13 @@
package com.baeldung.storedprocedure.controller; package com.baeldung.spring.data.persistence.storedprocedure.controller;
import java.util.List;
import com.baeldung.spring.data.persistence.storedprocedure.entity.Car;
import com.baeldung.spring.data.persistence.storedprocedure.service.CarService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.baeldung.storedprocedure.entity.Car; import java.util.List;
import com.baeldung.storedprocedure.service.CarService;
@RestController @RestController
public class CarController { public class CarController {

View File

@ -1,4 +1,4 @@
package com.baeldung.storedprocedure.entity; package com.baeldung.spring.data.persistence.storedprocedure.entity;
import jakarta.persistence.Column; import jakarta.persistence.Column;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;

View File

@ -1,14 +1,13 @@
package com.baeldung.storedprocedure.repository; package com.baeldung.spring.data.persistence.storedprocedure.repository;
import java.util.List;
import com.baeldung.spring.data.persistence.storedprocedure.entity.Car;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.query.Procedure; import org.springframework.data.jpa.repository.query.Procedure;
import org.springframework.data.repository.query.Param; import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import com.baeldung.storedprocedure.entity.Car; import java.util.List;
@Repository @Repository
public interface CarRepository extends JpaRepository<Car, Integer> { public interface CarRepository extends JpaRepository<Car, Integer> {

View File

@ -1,12 +1,11 @@
package com.baeldung.storedprocedure.service; package com.baeldung.spring.data.persistence.storedprocedure.service;
import java.util.List;
import com.baeldung.spring.data.persistence.storedprocedure.entity.Car;
import com.baeldung.spring.data.persistence.storedprocedure.repository.CarRepository;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baeldung.storedprocedure.entity.Car; import java.util.List;
import com.baeldung.storedprocedure.repository.CarRepository;
@Service @Service
public class CarService { public class CarService {

View File

@ -8,7 +8,6 @@ This module contains articles about repositories in Spring Data JPA
- [Spring Data JPA Adding a Method in All Repositories](https://www.baeldung.com/spring-data-jpa-method-in-all-repositories) - [Spring Data JPA Adding a Method in All Repositories](https://www.baeldung.com/spring-data-jpa-method-in-all-repositories)
- [Spring Data Composable Repositories](https://www.baeldung.com/spring-data-composable-repositories) - [Spring Data Composable Repositories](https://www.baeldung.com/spring-data-composable-repositories)
- [Spring Data JPA Repository Populators](https://www.baeldung.com/spring-data-jpa-repository-populators) - [Spring Data JPA Repository Populators](https://www.baeldung.com/spring-data-jpa-repository-populators)
- [Calling Stored Procedures from Spring Data JPA Repositories](https://www.baeldung.com/spring-data-jpa-stored-procedures)
- [LIKE Queries in Spring JPA Repositories](https://www.baeldung.com/spring-jpa-like-queries) - [LIKE Queries in Spring JPA Repositories](https://www.baeldung.com/spring-jpa-like-queries)
- More articles: [[--> next]](../spring-data-jpa-repo-2) - More articles: [[--> next]](../spring-data-jpa-repo-2)