Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Add missing @TargetAggregateIdentifier annotation
Browse files Browse the repository at this point in the history
Add missing @TargetAggregateIdentifier annotation
  • Loading branch information
smcvb committed Jun 1, 2018
1 parent 005f54b commit c43f4f2
Showing 1 changed file with 13 additions and 2 deletions.
@@ -1,7 +1,18 @@
package org.axonframework.samples.trader.api.company

import org.axonframework.commandhandling.TargetAggregateIdentifier
import org.axonframework.samples.trader.api.orders.trades.OrderBookId
import org.axonframework.samples.trader.api.users.UserId

data class CreateCompanyCommand(val companyId: CompanyId, val userId: UserId, val companyName: String, val companyValue: Long, val amountOfShares: Long)
data class AddOrderBookToCompanyCommand(val companyId: CompanyId, val orderBookId: OrderBookId)
data class CreateCompanyCommand(
@TargetAggregateIdentifier val companyId: CompanyId,
val userId: UserId,
val companyName: String,
val companyValue: Long,
val amountOfShares: Long
)

data class AddOrderBookToCompanyCommand(
@TargetAggregateIdentifier val companyId: CompanyId,
val orderBookId: OrderBookId
)

0 comments on commit c43f4f2

Please sign in to comment.