Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove product model and added product library #39

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.22.0")
// Custom-Pageable
implementation("com.hrv.mart:custom-pageable:0.0.1-SNAPSHOT")
// Product Model
implementation("com.hrv.mart:product:0.0.1")
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hrv.mart.product.controller

import com.hrv.mart.custompageable.CustomPageRequest
import com.hrv.mart.product.model.Product
import com.hrv.mart.product.Product
import com.hrv.mart.product.service.ProductService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.server.reactive.ServerHttpResponse
Expand Down
24 changes: 0 additions & 24 deletions src/main/kotlin/com/hrv/mart/product/model/Product.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hrv.mart.product.repository

import com.hrv.mart.product.model.Product
import com.hrv.mart.product.Product
import org.springframework.data.domain.PageRequest
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import org.springframework.stereotype.Repository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hrv.mart.product.service

import com.hrv.mart.custompageable.Pageable
import com.hrv.mart.product.model.Product
import com.hrv.mart.product.Product
import com.hrv.mart.product.repository.ProductRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.domain.PageRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.hrv.mart.product

import com.hrv.mart.custompageable.Pageable
import com.hrv.mart.product.controller.ProductController
import com.hrv.mart.product.model.Product
import com.hrv.mart.product.Product
import com.hrv.mart.product.repository.ProductRepository
import com.hrv.mart.product.service.ProductService
import org.junit.jupiter.api.Test
Expand Down