This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move generic portfolio command/event to higher level
Move generic portfolio command/event to higher level
- Loading branch information
Showing
6 changed files
with
24 additions
and
90 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
.../src/main/java/org/axonframework/samples/trader/api/portfolio/CreatePortfolioCommand.java
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
...i/src/main/java/org/axonframework/samples/trader/api/portfolio/PortfolioCreatedEvent.java
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
core-api/src/main/java/org/axonframework/samples/trader/api/portfolio/cash/commands.kt
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
5 changes: 2 additions & 3 deletions
5
core-api/src/main/java/org/axonframework/samples/trader/api/portfolio/cash/events.kt
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: 11 additions & 0 deletions
11
core-api/src/main/java/org/axonframework/samples/trader/api/portfolio/commands.kt
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 org.axonframework.samples.trader.api.portfolio | ||
|
||
import org.axonframework.commandhandling.TargetAggregateIdentifier | ||
import org.axonframework.samples.trader.api.users.UserId | ||
|
||
abstract class PortfolioCommand(@TargetAggregateIdentifier open val portfolioId: PortfolioId) | ||
|
||
data class CreatePortfolioCommand( | ||
override val portfolioId: PortfolioId, | ||
val userId: UserId | ||
) : PortfolioCommand(portfolioId) |
10 changes: 10 additions & 0 deletions
10
core-api/src/main/java/org/axonframework/samples/trader/api/portfolio/events.kt
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,10 @@ | ||
package org.axonframework.samples.trader.api.portfolio | ||
|
||
import org.axonframework.samples.trader.api.users.UserId | ||
|
||
abstract class PortfolioEvent(open val portfolioId: PortfolioId) | ||
|
||
class PortfolioCreatedEvent( | ||
override val portfolioId: PortfolioId, | ||
val userId: UserId | ||
) : PortfolioEvent(portfolioId) |