-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
476 additions
and
540 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
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
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
14 changes: 7 additions & 7 deletions
14
apps/sepuling/src/main/java/smecalculus/bezmen/storage/SepulkaStateMapper.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 smecalculus.bezmen.storage; | ||
|
||
import org.mapstruct.Mapper; | ||
import smecalculus.bezmen.core.ServerSide; | ||
import smecalculus.bezmen.core.StateDm; | ||
import smecalculus.bezmen.mapping.EdgeMapper; | ||
|
||
@Mapper | ||
public interface SepulkaStateMapper extends EdgeMapper { | ||
EdgeSide.AggregateState toEdge(ServerSide.AggregateState state); | ||
StateEm.AggregateState toEdge(StateDm.AggregateState state); | ||
|
||
ServerSide.AggregateState toDomain(EdgeSide.AggregateState state); | ||
StateDm.AggregateState toDomain(StateEm.AggregateState state); | ||
|
||
EdgeSide.TouchState toEdge(ServerSide.TouchState state); | ||
StateEm.TouchState toEdge(StateDm.TouchState state); | ||
|
||
ServerSide.ExistenceState toDomain(EdgeSide.ExistenceState state); | ||
StateDm.ExistenceState toDomain(StateEm.ExistenceState state); | ||
|
||
EdgeSide.PreviewState toEdge(ServerSide.PreviewState state); | ||
StateEm.PreviewState toEdge(StateDm.PreviewState state); | ||
|
||
ServerSide.PreviewState toDomain(EdgeSide.PreviewState state); | ||
StateDm.PreviewState toDomain(StateEm.PreviewState state); | ||
} |
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
20 changes: 10 additions & 10 deletions
20
apps/sepuling/src/test/java/smecalculus/bezmen/construction/StoragePropsBeans.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,41 +1,41 @@ | ||
package smecalculus.bezmen.construction; | ||
|
||
import static smecalculus.bezmen.configuration.StateMappingMode.MY_BATIS; | ||
import static smecalculus.bezmen.configuration.StateMappingMode.SPRING_DATA; | ||
import static smecalculus.bezmen.configuration.StorageProtocolMode.H2; | ||
import static smecalculus.bezmen.configuration.StorageProtocolMode.POSTGRES; | ||
import static smecalculus.bezmen.configuration.StorageDm.MappingMode.MY_BATIS; | ||
import static smecalculus.bezmen.configuration.StorageDm.MappingMode.SPRING_DATA; | ||
import static smecalculus.bezmen.configuration.StorageDm.ProtocolMode.H2; | ||
import static smecalculus.bezmen.configuration.StorageDm.ProtocolMode.POSTGRES; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import smecalculus.bezmen.configuration.StorageProps; | ||
import smecalculus.bezmen.configuration.StoragePropsEg; | ||
import smecalculus.bezmen.configuration.StorageDm.StorageProps; | ||
import smecalculus.bezmen.configuration.StorageDmEg; | ||
|
||
public class StoragePropsBeans { | ||
|
||
public static class SpringDataPostgres { | ||
@Bean | ||
public StorageProps storageProps() { | ||
return StoragePropsEg.storageProps(SPRING_DATA, POSTGRES).build(); | ||
return StorageDmEg.storageProps(SPRING_DATA, POSTGRES).build(); | ||
} | ||
} | ||
|
||
public static class SpringDataH2 { | ||
@Bean | ||
public StorageProps storageProps() { | ||
return StoragePropsEg.storageProps(SPRING_DATA, H2).build(); | ||
return StorageDmEg.storageProps(SPRING_DATA, H2).build(); | ||
} | ||
} | ||
|
||
public static class MyBatisPostgres { | ||
@Bean | ||
public StorageProps storageProps() { | ||
return StoragePropsEg.storageProps(MY_BATIS, POSTGRES).build(); | ||
return StorageDmEg.storageProps(MY_BATIS, POSTGRES).build(); | ||
} | ||
} | ||
|
||
public static class MyBatisH2 { | ||
@Bean | ||
public StorageProps storageProps() { | ||
return StoragePropsEg.storageProps(MY_BATIS, H2).build(); | ||
return StorageDmEg.storageProps(MY_BATIS, H2).build(); | ||
} | ||
} | ||
} |
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.