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:
Steven van Beelen 2018-12-18 14:56:23 +01:00
parent 96945027a1
commit 2b07c0364d
5 changed files with 8 additions and 8 deletions

View File

@ -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 {

View File

@ -1,4 +1,4 @@
package com.baeldung.axon.events;
package com.baeldung.axon.coreapi.events;
import java.util.Objects;

View File

@ -1,4 +1,4 @@
package com.baeldung.axon.events;
package com.baeldung.axon.coreapi.events;
import java.util.Objects;

View File

@ -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 {

View File

@ -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 {