Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c4f1d77

Browse files
committed
Logic Updated
1 parent c21f9ab commit c4f1d77

File tree

50 files changed

+787
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+787
-734
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
//package com.urunov.config;
2-
//
3-
//import org.modelmapper.ModelMapper;
4-
//import org.modelmapper.convention.MatchingStrategies;
5-
//import org.springframework.context.annotation.Bean;
6-
//import org.springframework.context.annotation.Configuration;
7-
//
8-
///**
9-
// * User: hamdamboy
10-
// * Project: model
11-
// * Github: @urunov
12-
// */
13-
//@Configuration
14-
//public class AppConfig {
15-
//
16-
// @Bean
17-
// public ModelMapper modelMapper() {
18-
//
19-
// ModelMapper modelMapper = new ModelMapper();
20-
// modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.LOOSE);
21-
// return modelMapper;
22-
// }
23-
//}
1+
package com.urunov.config;
2+
3+
import org.modelmapper.ModelMapper;
4+
import org.modelmapper.convention.MatchingStrategies;
5+
import org.springframework.context.annotation.Bean;
6+
import org.springframework.context.annotation.Configuration;
7+
8+
/**
9+
* User: hamdamboy
10+
* Project: model
11+
* Github: @urunov
12+
*/
13+
@Configuration
14+
public class AppConfig {
15+
16+
@Bean
17+
public ModelMapper modelMapper() {
18+
19+
ModelMapper modelMapper = new ModelMapper();
20+
modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.LOOSE);
21+
return modelMapper;
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
//package com.urunov.config;
2-
//
3-
//import org.springframework.context.annotation.Configuration;
4-
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
5-
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
6-
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7-
//
8-
///**
9-
// * User: hamdamboy
10-
// * Project: model
11-
// * Github: @urunov
12-
// */
13-
//@Configuration
14-
//@EnableWebMvc
15-
//public class CorsConfig implements WebMvcConfigurer {
16-
//
17-
//// @Override
18-
//// public void addCorsMappings(CorsRegistry registry) {
19-
//// registry.addMapping("/**").allowedOrigins(System.getenv("REACT_CLIENT_URL"))
20-
//// .allowedMethods("GET", "POST");
21-
//// }
22-
//}
1+
package com.urunov.config;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.web.servlet.config.annotation.CorsRegistry;
5+
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
6+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7+
8+
/**
9+
* User: hamdamboy
10+
* Project: model
11+
* Github: @urunov
12+
*/
13+
@Configuration
14+
@EnableWebMvc
15+
public class CorsConfig implements WebMvcConfigurer {
16+
17+
@Override
18+
public void addCorsMappings(CorsRegistry registry) {
19+
registry.addMapping("/**").allowedOrigins(System.getenv("REACT_CLIENT_URL"))
20+
.allowedMethods("GET", "POST");
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//package com.urunov.dao.sql.categories;
22
//
3-
//import com.urunov.entity.elements.categories.ApparelCategory;
3+
//import com.urunov.entity.categories.ApparelCategory;
44
//import org.springframework.data.jpa.repository.JpaRepository;
5-
//import org.springframework.data.jpa.repository.Query;
6-
//
7-
//import java.util.List;
85
//
96
///**
107
// * User: hamdamboy
@@ -13,12 +10,13 @@
1310
// */
1411
//public interface ApparelCategoryRepository extends JpaRepository<ApparelCategory, Integer> {
1512
//
16-
// @Query(value = "SELECT c FROM ApparelImages c where c.apparelCategory.type=?1 and" +
17-
// " c.genderCategory.type=?2")
18-
// ApparelCategory findByClothesTypeAndGender(String clothesType, String Gender);
19-
//
20-
// @Query(value = "SELECT c FROM ApparelCategory c")
21-
// List<ApparelCategory> getAllData();
13+
//// @Query(value = "SELECT c FROM ApparelImages c where c.apparelCategory.type=?1 and" +
14+
//// " c.genderCategory.type=?2")
15+
//// ApparelCategory findByClothesTypeAndGender(String clothesType, String Gender);
16+
////
17+
//// @Query(value = "SELECT c FROM ApparelCategory c")
18+
//// List<ApparelCategory> getAllData();
2219
//
2320
// ApparelCategory findByType(String title);
2421
//}
22+
//
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//package com.urunov.dao.sql.categories;
22
//
3-
//import com.urunov.entity.elements.categories.GenderCategory;
3+
//import com.urunov.entity.categories.GenderCategory;
44
//import org.springframework.data.jpa.repository.JpaRepository;
5-
//import org.springframework.data.jpa.repository.Query;
6-
//
7-
//import java.util.List;
85
//
96
///**
107
// * User: hamdamboy
@@ -13,8 +10,8 @@
1310
// */
1411
//public interface GenderCategoryRepository extends JpaRepository<GenderCategory, Integer> {
1512
//
16-
// @Query(value = "SELECT g FROM GenderCategory g")
17-
// List<GenderCategory> getAllData();
13+
//// @Query(value = "SELECT g FROM GenderCategory g")
14+
//// List<GenderCategory> getAllData();
1815
//
1916
// GenderCategory findByType(String gender);
2017
//}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
//package com.urunov.dao.sql.categories;
22
//
3-
//import com.urunov.entity.elements.categories.GenderCategory;
4-
//import com.urunov.entity.elements.categories.PriceRangeCategory;
3+
//import com.urunov.entity.categories.PriceRangeCategory;
54
//import org.springframework.data.jpa.repository.JpaRepository;
6-
//import org.springframework.data.jpa.repository.Query;
7-
//
8-
//import java.util.List;
95
//
106
///**
117
// * User: hamdamboy
@@ -14,8 +10,8 @@
1410
// */
1511
//public interface PriceRangeCategoryRepository extends JpaRepository<PriceRangeCategory, Integer> {
1612
//
17-
// @Query(value = "SELECT g from GenderCategory g")
18-
// List<GenderCategory> getAllData();
13+
//// @Query(value = "SELECT g from GenderCategory g")
14+
//// List<GenderCategory> getAllData();
1915
//
2016
// PriceRangeCategory findByType(String type);
2117
//}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//package com.urunov.dao.sql.categories;
22
//
3-
//import com.urunov.entity.elements.categories.ProductBrandCategory;
3+
//import com.urunov.entity.categories.ProductBrandCategory;
44
//import org.springframework.data.jpa.repository.JpaRepository;
5-
//import org.springframework.data.jpa.repository.Query;
6-
//
7-
//import java.util.List;
85
//
96
///**
107
// * User: hamdamboy
@@ -13,8 +10,8 @@
1310
// */
1411
//public interface ProductBrandCategoryRepository extends JpaRepository<ProductBrandCategory, Integer> {
1512
//
16-
// @Query(value = "SELECT p from ProductBrandCategory p")
17-
// List<ProductBrandCategory> getAllData();
13+
//// @Query(value = "SELECT p from ProductBrandCategory p")
14+
//// List<ProductBrandCategory> getAllData();
1815
//
1916
// ProductBrandCategory findByType(String brandName);
2017
//}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//package com.urunov.dao.sql.categories;
22
//
3-
//import com.urunov.entity.elements.categories.SortByCategory;
3+
//import com.urunov.entity.categories.SortByCategory;
44
//import org.springframework.data.jpa.repository.JpaRepository;
5-
//import org.springframework.data.jpa.repository.Query;
6-
//
7-
//import java.util.List;
85
//
96
///**
107
// * User: hamdamboy
@@ -13,9 +10,9 @@
1310
// */
1411
//public interface SortByCategoryRepository extends JpaRepository<SortByCategory, Integer> {
1512
//
16-
// @Query(value = "SELECT s FROM SortByCategory s")
17-
// List<SortByCategory> getAllData();
13+
//// @Query(value = "SELECT s FROM SortByCategory s")
14+
//// List<SortByCategory> getAllData();
1815
//
19-
// SortByCategory findByType(String type);
16+
// // SortByCategory findByType(String type);
2017
//
2118
//}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//package com.urunov.dao.sql.images;
22
//
3-
//import com.urunov.entity.elements.images.ApparelImages;
3+
//import com.urunov.entity.images.ApparelImages;
44
//import org.springframework.data.jpa.repository.JpaRepository;
5-
//import org.springframework.data.jpa.repository.Query;
65
//
76
//import java.util.List;
87
//
@@ -13,6 +12,6 @@
1312
// */
1413
//public interface ApparelImagesRepository extends JpaRepository<ApparelImages, Integer> {
1514
//
16-
// @Query(value = "SELECT DISTINCT c FROM ApparelImages c")
17-
// List<ApparelImages> getAllData();
15+
//// @Query(value = "SELECT DISTINCT c FROM ApparelImages c")
16+
// // List<ApparelImages> getAllData();
1817
//}

‎Part-9.SpringBoot-React-Projects/Project-5.Spring-ReactJS-Ecommerce-Shopping/fullstack/backend/model/src/main/java/com/urunov/dao/sql/images/BrandImagesRepository.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//package com.urunov.dao.sql.images;
22
//
3-
//import com.urunov.entity.elements.images.BrandImages;
4-
//import org.springframework.boot.json.JacksonJsonParser;
3+
//import com.urunov.entity.images.BrandImages;
54
//import org.springframework.data.jpa.repository.JpaRepository;
65
//import org.springframework.data.jpa.repository.Query;
76
//

‎Part-9.SpringBoot-React-Projects/Project-5.Spring-ReactJS-Ecommerce-Shopping/fullstack/backend/model/src/main/java/com/urunov/dao/sql/images/CarouselImagesRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//package com.urunov.dao.sql.images;
22
//
3-
//import com.urunov.entity.elements.images.CarouselImages;
3+
//import com.urunov.entity.images.CarouselImages;
44
//import org.springframework.data.jpa.repository.JpaRepository;
55
//import org.springframework.data.jpa.repository.Query;
66
//
@@ -13,6 +13,6 @@
1313
// */
1414
//public interface CarouselImagesRepository extends JpaRepository<CarouselImages, Integer> {
1515
//
16-
// @Query(value = "SELECT DISTINCT c FROM CarouselImages c")
17-
// List<CarouselImages> getAllData();
16+
//// @Query(value = "SELECT DISTINCT c FROM CarouselImages c")
17+
//// List<CarouselImages> getAllData();
1818
//}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /