-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #881 from amido/4713-Mapstruct-mapper-replacement
4713 mapstruct mapper replacement
- Loading branch information
Showing
11 changed files
with
727 additions
and
679 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
java/src/main/java/com/amido/stacks/workloads/menu/mappers/CategoryMapper.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,13 @@ | ||
package com.amido.stacks.workloads.menu.mappers; | ||
|
||
import com.amido.stacks.core.mapping.BaseMapper; | ||
import com.amido.stacks.workloads.menu.api.v1.dto.response.CategoryDTO; | ||
import com.amido.stacks.workloads.menu.domain.Category; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.NullValueCheckStrategy; | ||
|
||
@Mapper( | ||
componentModel = "spring", | ||
uses = {ItemMapper.class}, | ||
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) | ||
public interface CategoryMapper extends BaseMapper<CategoryDTO, Category> {} |
56 changes: 0 additions & 56 deletions
56
java/src/main/java/com/amido/stacks/workloads/menu/mappers/DomainToDtoMapper.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
java/src/main/java/com/amido/stacks/workloads/menu/mappers/ItemMapper.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,13 @@ | ||
package com.amido.stacks.workloads.menu.mappers; | ||
|
||
import com.amido.stacks.core.mapping.BaseMapper; | ||
import com.amido.stacks.workloads.menu.api.v1.dto.response.ItemDTO; | ||
import com.amido.stacks.workloads.menu.domain.Item; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.NullValueCheckStrategy; | ||
|
||
@Mapper( | ||
componentModel = "spring", | ||
uses = {}, | ||
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) | ||
public interface ItemMapper extends BaseMapper<ItemDTO, Item> {} |
14 changes: 14 additions & 0 deletions
14
java/src/main/java/com/amido/stacks/workloads/menu/mappers/MenuMapper.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,14 @@ | ||
package com.amido.stacks.workloads.menu.mappers; | ||
|
||
import com.amido.stacks.core.mapping.BaseMapper; | ||
import com.amido.stacks.core.mapping.MapperUtils; | ||
import com.amido.stacks.workloads.menu.api.v1.dto.response.MenuDTO; | ||
import com.amido.stacks.workloads.menu.domain.Menu; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.NullValueCheckStrategy; | ||
|
||
@Mapper( | ||
componentModel = "spring", | ||
uses = {MapperUtils.class, CategoryMapper.class}, | ||
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) | ||
public interface MenuMapper extends BaseMapper<MenuDTO, Menu> {} |
14 changes: 14 additions & 0 deletions
14
java/src/main/java/com/amido/stacks/workloads/menu/mappers/SearchMenuResultItemMapper.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,14 @@ | ||
package com.amido.stacks.workloads.menu.mappers; | ||
|
||
import com.amido.stacks.core.mapping.BaseMapper; | ||
import com.amido.stacks.core.mapping.MapperUtils; | ||
import com.amido.stacks.workloads.menu.api.v1.dto.response.SearchMenuResultItem; | ||
import com.amido.stacks.workloads.menu.domain.Menu; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.NullValueCheckStrategy; | ||
|
||
@Mapper( | ||
componentModel = "spring", | ||
uses = {MapperUtils.class, CategoryMapper.class}, | ||
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) | ||
public interface SearchMenuResultItemMapper extends BaseMapper<SearchMenuResultItem, Menu> {} |
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