-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MARP-947 re structure product module content in product
- Loading branch information
1 parent
84b2794
commit 20003bf
Showing
17 changed files
with
220 additions
and
221 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
10 changes: 5 additions & 5 deletions
10
marketplace-service/src/main/java/com/axonivy/market/constants/MongoDBConstants.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,20 +1,20 @@ | ||
package com.axonivy.market.constants; | ||
|
||
public class MongoDBConstants { | ||
|
||
private MongoDBConstants() { | ||
} | ||
|
||
public static final String ID ="_id"; | ||
public static final String ADD_FIELD ="$addFields"; | ||
public static final String PRODUCT_MODULE_CONTENTS ="productModuleContents"; | ||
public static final String PRODUCT_MODULE_CONTENT ="productModuleContent"; | ||
public static final String PRODUCT_MODULE_CONTENT_QUERY ="$productModuleContents"; | ||
public static final String FILTER ="$filter"; | ||
public static final String INPUT ="input"; | ||
public static final String AS ="as"; | ||
public static final String CONDITION ="cond"; | ||
public static final String EQUAL ="$eq"; | ||
public static final String PRODUCT_MODULE_CONTENT_TAG ="$$productModuleContent.tag"; | ||
public static final String PRODUCT_COLLECTION ="Product"; | ||
public static final String NEWEST_RELEASED_VERSION_QUERY = "$newestReleaseVersion"; | ||
public static final String INSTALLATION_COUNT = "InstallationCount"; | ||
public static final String SYNCHRONIZED_INSTALLATION_COUNT ="SynchronizedInstallationCount"; | ||
|
||
} |
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
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
10 changes: 10 additions & 0 deletions
10
...e-service/src/main/java/com/axonivy/market/repository/ProductModuleContentRepository.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.axonivy.market.repository; | ||
|
||
import com.axonivy.market.entity.ProductModuleContent; | ||
import org.springframework.data.mongodb.repository.MongoRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface ProductModuleContentRepository extends MongoRepository<ProductModuleContent, String> { | ||
ProductModuleContent findByTagAndProductId(String tag, String productId); | ||
} |
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
Oops, something went wrong.