rename the package

This commit is contained in:
Amit Kumatr 2023-01-31 18:30:43 +05:30
parent 83aae330ac
commit 7be973e5aa
5 changed files with 24 additions and 6 deletions

View File

@ -5,6 +5,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>spring-data-jpa-query-3</artifactId> <artifactId>spring-data-jpa-query-3</artifactId>
<name>spring-data-jpa-query-3</name> <name>spring-data-jpa-query-3</name>
<properties>
<javafaker.version>0.15</javafaker.version>
</properties>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
@ -25,7 +28,7 @@
<dependency> <dependency>
<groupId>com.github.javafaker</groupId> <groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId> <artifactId>javafaker</artifactId>
<version>0.15</version> <version>${javafaker.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -0,0 +1,15 @@
package com.baeldung.spring.data.jpa.collectionsvsstream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ListVsStreamQueryApplication {
@Autowired private UserRepository userRepository;
public static void main(String[] args) {
SpringApplication.run(ListVsStreamQueryApplication.class, args);
}
}

View File

@ -1,4 +1,4 @@
package com.baeldung.spring.data.jpa.collections.vsstream; package com.baeldung.spring.data.jpa.collectionsvsstream;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;

View File

@ -1,4 +1,4 @@
package com.baeldung.spring.data.jpa.collections.vsstream; package com.baeldung.spring.data.jpa.collectionsvsstream;
import java.util.List; import java.util.List;
import java.util.stream.Stream; import java.util.stream.Stream;

View File

@ -1,4 +1,4 @@
package com.baeldung.spring.data.jpa.query.collections.vsstream; package com.baeldung.spring.data.jpa.collectionsvsstream;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@ -14,8 +14,8 @@ 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.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.baeldung.spring.data.jpa.collections.vsstream.User; import com.baeldung.spring.data.jpa.collectionsvsstream.User;
import com.baeldung.spring.data.jpa.collections.vsstream.UserRepository; import com.baeldung.spring.data.jpa.collectionsvsstream.UserRepository;
import com.github.javafaker.Faker; import com.github.javafaker.Faker;
@DataJpaTest @DataJpaTest