-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added mfes to search products response (#54)
* feat: added mfes to search products response * feat: temp solution
- Loading branch information
1 parent
657c201
commit 2c1777f
Showing
5 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/main/java/org/tkit/onecx/workspace/domain/services/ProductService.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,27 @@ | ||
package org.tkit.onecx.workspace.domain.services; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.inject.Inject; | ||
import jakarta.transaction.Transactional; | ||
|
||
import org.tkit.onecx.workspace.domain.criteria.ProductSearchCriteria; | ||
import org.tkit.onecx.workspace.domain.daos.ProductDAO; | ||
import org.tkit.onecx.workspace.rs.internal.mappers.ProductMapper; | ||
|
||
import gen.org.tkit.onecx.workspace.rs.internal.model.ProductPageResultDTO; | ||
|
||
@ApplicationScoped | ||
public class ProductService { | ||
|
||
@Inject | ||
ProductDAO productDAO; | ||
|
||
@Inject | ||
ProductMapper mapper; | ||
|
||
@Transactional | ||
public ProductPageResultDTO findByCriteria(ProductSearchCriteria criteria) { | ||
var result = productDAO.findByCriteria(criteria); | ||
return mapper.mapPage(result); | ||
} | ||
} |
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