-
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
132 changed files
with
437 additions
and
438 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
11 changes: 0 additions & 11 deletions
11
apps/foo/src/main/java/org/smecalculus/bezmen/domain/impl/SepulkaConverterImpl.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
apps/foo/src/main/java/org/smecalculus/bezmen/messaging/impl/SepulkaClientImpl.java
This file was deleted.
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
12 changes: 6 additions & 6 deletions
12
...s/bezmen/data/impl/SepulkaDaoMyBatis.java → ...s/bezmen/data/impl/SepulkaDaoMyBatis.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
12 changes: 6 additions & 6 deletions
12
...ezmen/data/impl/SepulkaDaoSpringData.java → ...ezmen/data/impl/SepulkaDaoSpringData.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
4 changes: 2 additions & 2 deletions
4
...calculus/bezmen/data/spec/SepulkaDao.java → ...calculus/bezmen/data/spec/SepulkaDao.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
2 changes: 1 addition & 1 deletion
2
...calculus/bezmen/data/spec/SepulkaRec.java → ...calculus/bezmen/data/spec/SepulkaRec.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
4 changes: 2 additions & 2 deletions
4
...us/bezmen/data/spec/SepulkaRecMapper.java → ...us/bezmen/data/spec/SepulkaRecMapper.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
4 changes: 2 additions & 2 deletions
4
...n/data/spec/mybatis/SepulkaSqlMapper.java → ...n/data/spec/mybatis/SepulkaSqlMapper.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
4 changes: 2 additions & 2 deletions
4
...ta/spec/springdata/SepulkaRepository.java → ...ta/spec/springdata/SepulkaRepository.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,6 +1,6 @@ | ||
package org.smecalculus.bezmen.data.spec.springdata; | ||
package smecalculus.bezmen.data.spec.springdata; | ||
|
||
import org.smecalculus.bezmen.data.spec.SepulkaRec; | ||
import org.springframework.data.repository.CrudRepository; | ||
import smecalculus.bezmen.data.spec.SepulkaRec; | ||
|
||
public interface SepulkaRepository extends CrudRepository<SepulkaRec, String> {} |
11 changes: 11 additions & 0 deletions
11
apps/foo/src/main/java/smecalculus/bezmen/domain/impl/SepulkaConverterImpl.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,11 @@ | ||
package smecalculus.bezmen.domain.impl; | ||
|
||
import smecalculus.bezmen.domain.spec.Sepulka; | ||
import smecalculus.bezmen.domain.spec.SepulkaConverter; | ||
import smecalculus.bezmen.messaging.spec.SepulkaRegRes; | ||
|
||
public class SepulkaConverterImpl implements SepulkaConverter { | ||
public SepulkaRegRes toRegRes(Sepulka sepulka) { | ||
return new SepulkaRegRes(sepulka.id(), sepulka.name()); | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...ezmen/domain/impl/SepulkaServiceImpl.java → ...ezmen/domain/impl/SepulkaServiceImpl.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
22 changes: 22 additions & 0 deletions
22
apps/foo/src/main/java/smecalculus/bezmen/messaging/impl/SepulkaClientImpl.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,22 @@ | ||
package smecalculus.bezmen.messaging.impl; | ||
|
||
import lombok.NonNull; | ||
import smecalculus.bezmen.domain.spec.Sepulka; | ||
import smecalculus.bezmen.domain.spec.SepulkaConverter; | ||
import smecalculus.bezmen.domain.spec.SepulkaService; | ||
import smecalculus.bezmen.messaging.spec.SepulkaClient; | ||
import smecalculus.bezmen.messaging.spec.SepulkaRegReq; | ||
import smecalculus.bezmen.messaging.spec.SepulkaRegRes; | ||
import smecalculus.bezmen.validation.spec.BezmenValidator; | ||
|
||
public record SepulkaClientImpl( | ||
@NonNull BezmenValidator validator, @NonNull SepulkaService service, @NonNull SepulkaConverter converter) | ||
implements SepulkaClient { | ||
|
||
@Override | ||
public SepulkaRegRes register(SepulkaRegReq request) { | ||
validator.validate(request); | ||
Sepulka sepulka = service.register(request); | ||
return converter.toRegRes(sepulka); | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
...ing/impl/springmvc/SepulkaController.java → ...ing/impl/springmvc/SepulkaController.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
2 changes: 1 addition & 1 deletion
2
...zmen/messaging/spec/SepulkaMsgMapper.java → ...zmen/messaging/spec/SepulkaMsgMapper.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
2 changes: 1 addition & 1 deletion
2
...zmen/messaging/spec/SepulkaRegReqMsg.java → ...zmen/messaging/spec/SepulkaRegReqMsg.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,4 +1,4 @@ | ||
package org.smecalculus.bezmen.messaging.spec; | ||
package smecalculus.bezmen.messaging.spec; | ||
|
||
import lombok.Data; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...zmen/messaging/spec/SepulkaRegResMsg.java → ...zmen/messaging/spec/SepulkaRegResMsg.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,4 +1,4 @@ | ||
package org.smecalculus.bezmen.messaging.spec; | ||
package smecalculus.bezmen.messaging.spec; | ||
|
||
import lombok.Data; | ||
|
||
|
22 changes: 11 additions & 11 deletions
22
...construction/spec/SepulkaClientBeans.java → ...construction/spec/SepulkaClientBeans.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
Oops, something went wrong.