-
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.
[conluz-54] Renamed current id to code and added a new field id of ty… (
#55) * [conluz-54] Renamed current id to code and added a new field id of type UUID * [conluz-54] Adapted OAS documentation to the adition of the new code field
- Loading branch information
1 parent
7f37f07
commit 61548ce
Showing
36 changed files
with
317 additions
and
111 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
16 changes: 16 additions & 0 deletions
16
src/main/java/org/lucoenergia/conluz/domain/admin/supply/SupplyAlreadyExistsException.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,16 @@ | ||
package org.lucoenergia.conluz.domain.admin.supply; | ||
|
||
import org.lucoenergia.conluz.domain.shared.SupplyCode; | ||
|
||
public class SupplyAlreadyExistsException extends RuntimeException { | ||
|
||
private final SupplyCode code; | ||
|
||
public SupplyAlreadyExistsException(SupplyCode code) { | ||
this.code = code; | ||
} | ||
|
||
public SupplyCode getUserId() { | ||
return code; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/org/lucoenergia/conluz/domain/shared/SupplyCode.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 org.lucoenergia.conluz.domain.shared; | ||
|
||
public class SupplyCode { | ||
|
||
private final String code; | ||
|
||
public SupplyCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
src/main/java/org/lucoenergia/conluz/domain/shared/SupplyId.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,14 +1,16 @@ | ||
package org.lucoenergia.conluz.domain.shared; | ||
|
||
import java.util.UUID; | ||
|
||
public class SupplyId { | ||
|
||
private final String id; | ||
private final UUID id; | ||
|
||
public SupplyId(String id) { | ||
public SupplyId(UUID id) { | ||
this.id = id; | ||
} | ||
|
||
public String getId() { | ||
public UUID getId() { | ||
return id; | ||
} | ||
} |
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
Oops, something went wrong.