File tree Expand file tree Collapse file tree
spring-rest-query-language Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
22 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
33 <modelVersion >4.0.0</modelVersion >
4- <groupId >com.baeldung</groupId >
54 <artifactId >spring-rest-query-language</artifactId >
65 <version >0.1-SNAPSHOT</version >
76 <name >spring-rest-query-language</name >
Original file line number Diff line number Diff line change 11package com .baeldung .persistence .dao ;
22
3- import org .baeldung .persistence .model .QMyUser ;
3+ import com .baeldung .persistence .model .QMyUser ;
44import org .springframework .data .jpa .repository .JpaRepository ;
55import org .springframework .data .querydsl .QuerydslPredicateExecutor ;
66import org .springframework .data .querydsl .binding .QuerydslBinderCustomizer ;
Original file line number Diff line number Diff line change 1919 */
2020@ EnableScheduling
2121@ EnableAutoConfiguration
22- @ ComponentScan ("org .baeldung" )
22+ @ ComponentScan ("com .baeldung" )
2323@ SpringBootApplication
2424public class Application extends SpringBootServletInitializer {
2525
Original file line number Diff line number Diff line change 2424@ Configuration
2525@ EnableTransactionManagement
2626@ PropertySource ({ "classpath:persistence-${envTarget:h2}.properties" })
27- @ ComponentScan ({ "org .baeldung.persistence" })
27+ @ ComponentScan ({ "com .baeldung.persistence" })
2828// @ImportResource("classpath*:springDataPersistenceConfig.xml")
29- @ EnableJpaRepositories (basePackages = "org .baeldung.persistence.dao" )
29+ @ EnableJpaRepositories (basePackages = "com .baeldung.persistence.dao" )
3030public class PersistenceConfig {
3131
3232 @ Autowired
@@ -40,7 +40,7 @@ public PersistenceConfig() {
4040 public LocalContainerEntityManagerFactoryBean entityManagerFactory () {
4141 final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean ();
4242 em .setDataSource (dataSource ());
43- em .setPackagesToScan (new String [] { "org .baeldung.persistence.model" });
43+ em .setPackagesToScan (new String [] { "com .baeldung.persistence.model" });
4444
4545 final HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter ();
4646 // vendorAdapter.set
Original file line number Diff line number Diff line change 1010import org .springframework .web .servlet .view .InternalResourceViewResolver ;
1111
1212@ Configuration
13- @ ComponentScan ("org .baeldung.web" )
13+ @ ComponentScan ("com .baeldung.web" )
1414@ EnableWebMvc
1515public class WebConfig implements WebMvcConfigurer {
1616
Original file line number Diff line number Diff line change 77 http://www.springframework.org/schema/data/jpa/spring-jpa.xsd"
88>
99
10- <jpa : repositories base-package =" org .baeldung.persistence.dao" />
10+ <jpa : repositories base-package =" com .baeldung.persistence.dao" />
1111
1212</beans >
Original file line number Diff line number Diff line change 1616 </context-param >
1717 <context-param >
1818 <param-name >contextConfigLocation</param-name >
19- <param-value >org .baeldung.spring</param-value >
19+ <param-value >com .baeldung.spring</param-value >
2020 </context-param >
2121
2222 <listener >
You can’t perform that action at this time.
0 commit comments