Updated the revision for back account

This commit is contained in:
Sambo Chea 2020-08-21 13:43:55 +07:00
parent fedc1029ce
commit da16ea9afe
2 changed files with 3 additions and 3 deletions

View File

@ -11,12 +11,14 @@ import org.axonframework.commandhandling.CommandHandler
import org.axonframework.eventsourcing.EventSourcingHandler import org.axonframework.eventsourcing.EventSourcingHandler
import org.axonframework.modelling.command.AggregateIdentifier import org.axonframework.modelling.command.AggregateIdentifier
import org.axonframework.modelling.command.AggregateLifecycle import org.axonframework.modelling.command.AggregateLifecycle
import org.axonframework.serialization.Revision
import org.axonframework.spring.stereotype.Aggregate import org.axonframework.spring.stereotype.Aggregate
import java.math.BigDecimal import java.math.BigDecimal
import java.util.UUID import java.util.UUID
@Aggregate @Aggregate
class BankAccountAggregate() { @Revision("1.0")
final class BankAccountAggregate() {
@AggregateIdentifier @AggregateIdentifier
private var id: UUID? = null private var id: UUID? = null
private var balance: BigDecimal? = null private var balance: BigDecimal? = null

View File

@ -17,7 +17,6 @@ import java.util.concurrent.CompletableFuture
class SwaggerConfiguration { class SwaggerConfiguration {
@Bean @Bean
fun apiDocket(): Docket { fun apiDocket(): Docket {
val ignoreClasses = arrayListOf(CompletableFuture::class.java).toTypedArray()
return Docket(DocumentationType.SWAGGER_2) return Docket(DocumentationType.SWAGGER_2)
.select() .select()
.apis( .apis(
@ -26,7 +25,6 @@ class SwaggerConfiguration {
) )
.paths(PathSelectors.any()) .paths(PathSelectors.any())
.build() .build()
.ignoredParameterTypes(*ignoreClasses)
.apiInfo(apiInfo) .apiInfo(apiInfo)
} }