-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#243 - Update create and update product apis
- Loading branch information
1 parent
bc9221f
commit 2dd988b
Showing
11 changed files
with
234 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 5 additions & 11 deletions
16
product/src/main/java/com/yas/product/model/ProductImage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
product/src/main/java/com/yas/product/repository/ProductImageRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.yas.product.repository; | ||
|
||
import com.yas.product.model.ProductImage; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import com.yas.product.model.ProductImage; | ||
import java.util.List; | ||
|
||
@Repository | ||
public interface ProductImageRepository extends JpaRepository<ProductImage, Long>{ | ||
|
||
public interface ProductImageRepository extends JpaRepository<ProductImage, Long> { | ||
void deleteByImageIdInAndProductId(List<Long> imageIds, Long productId); | ||
} |
Oops, something went wrong.