[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:
parent
2df107ef2b
commit
a6ea78aa47
|
@ -7,4 +7,6 @@
|
|||
- [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)
|
||||
- [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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.storedprocedure;
|
||||
package com.baeldung.spring.data.persistence.storedprocedure;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
@ -1,14 +1,13 @@
|
|||
package com.baeldung.storedprocedure.controller;
|
||||
|
||||
import java.util.List;
|
||||
package com.baeldung.spring.data.persistence.storedprocedure.controller;
|
||||
|
||||
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.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baeldung.storedprocedure.entity.Car;
|
||||
import com.baeldung.storedprocedure.service.CarService;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
public class CarController {
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.storedprocedure.entity;
|
||||
package com.baeldung.spring.data.persistence.storedprocedure.entity;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
|
@ -1,14 +1,13 @@
|
|||
package com.baeldung.storedprocedure.repository;
|
||||
|
||||
import java.util.List;
|
||||
package com.baeldung.spring.data.persistence.storedprocedure.repository;
|
||||
|
||||
import com.baeldung.spring.data.persistence.storedprocedure.entity.Car;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.jpa.repository.query.Procedure;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.baeldung.storedprocedure.entity.Car;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface CarRepository extends JpaRepository<Car, Integer> {
|
|
@ -1,12 +1,11 @@
|
|||
package com.baeldung.storedprocedure.service;
|
||||
|
||||
import java.util.List;
|
||||
package com.baeldung.spring.data.persistence.storedprocedure.service;
|
||||
|
||||
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.stereotype.Service;
|
||||
|
||||
import com.baeldung.storedprocedure.entity.Car;
|
||||
import com.baeldung.storedprocedure.repository.CarRepository;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class CarService {
|
|
@ -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 Composable Repositories](https://www.baeldung.com/spring-data-composable-repositories)
|
||||
- [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)
|
||||
|
||||
- More articles: [[--> next]](../spring-data-jpa-repo-2)
|
||||
|
|
Loading…
Reference in New Issue