BAEL-2435 Change event message package
Change the package of the event messages to coreapi.events to signal that the events are part of the API you'd share with the outside
This commit is contained in:
parent
96945027a1
commit
2b07c0364d
|
@ -9,8 +9,8 @@ import org.axonframework.spring.stereotype.Aggregate;
|
|||
|
||||
import com.baeldung.axon.coreapi.commands.CreateMessageCommand;
|
||||
import com.baeldung.axon.coreapi.commands.MarkReadMessageCommand;
|
||||
import com.baeldung.axon.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.events.MessageReadEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageReadEvent;
|
||||
|
||||
@Aggregate
|
||||
public class MessagesAggregate {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.axon.events;
|
||||
package com.baeldung.axon.coreapi.events;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.axon.events;
|
||||
package com.baeldung.axon.coreapi.events;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -3,8 +3,8 @@ package com.baeldung.axon.querymodel;
|
|||
import org.axonframework.eventhandling.EventHandler;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baeldung.axon.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.events.MessageReadEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageReadEvent;
|
||||
|
||||
@Service
|
||||
public class MessagesEventHandler {
|
||||
|
|
|
@ -8,8 +8,8 @@ import org.junit.*;
|
|||
|
||||
import com.baeldung.axon.coreapi.commands.CreateMessageCommand;
|
||||
import com.baeldung.axon.coreapi.commands.MarkReadMessageCommand;
|
||||
import com.baeldung.axon.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.events.MessageReadEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageCreatedEvent;
|
||||
import com.baeldung.axon.coreapi.events.MessageReadEvent;
|
||||
|
||||
public class MessagesAggregateTest {
|
||||
|
||||
|
|
Loading…
Reference in New Issue