Commit Graph

11036 Commits

Author SHA1 Message Date
Steven van Beelen bd0a1efe70 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. To that end the
MessagesAggregate should be replaced by an OrderAggregate. Additionally,
 add some decision making logic which denies the shipping of an order if
 it hasn't been confirmed yet. Adjust and update thee unit test
 accordingly
2018-12-27 09:51:08 +01:00
Steven van Beelen 2279246a42 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. First, update the commands and
events, adding an extra command/event to flesh out the domain some what
2018-12-27 09:39:40 +01:00
Steven van Beelen 557ce65552 BAEL-2435 Update main application
Update the MessagesRunner to be a spring boot application
2018-12-18 15:17:16 +01:00
Steven van Beelen d8ef050867 BAEL-2435 Add JPA and H2 dependencies
Add JPA and H2 dependencies to allow event sourcing, as for event
sourcing and EventStore is mandatory, and to make an EventStore a
database needs to be present for Axon's auto-configuration
2018-12-18 15:16:31 +01:00
Steven van Beelen fe30c44889 BAEL-2435 Add a GUI
-Add spring-boot-starter-web to support rest endpoints
-Add a rest endpoint to spoof some form of UI to publish a message, as
the old main will no longer publish the commands upon start up
2018-12-18 15:15:23 +01:00
Steven van Beelen e731b95ffb BAEL-2435 Rename unit test class
Rename unit test class to actual contain 'UnitTest' per the defined
standards
2018-12-18 15:01:29 +01:00
Steven van Beelen 2b07c0364d 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
2018-12-18 14:56:23 +01:00
Steven van Beelen 96945027a1 BAEL-2435 Change command message package
Change the package of the command messages to coreapi.commands to signal
 that the commands are part of the API you'd share with the outside
2018-12-18 14:55:28 +01:00
Steven van Beelen aaf2ef2227 BAEL-2435 Change eventhandlers package
Change eventhandlers package to querymodel package per best practices
2018-12-18 14:54:07 +01:00
Steven van Beelen 00b297a4d0 BAEL-2435 Rename aggregate test
Rename aggregate test from MessagesAggregateIntegrationTest to
MessagesAggregateTest, as it's not an integration test but a regular
unit test
2018-12-18 14:53:43 +01:00
Steven van Beelen 3e3210a803 BAEL-2435 Change aggregate package
-Change aggregate package to commandmodel package per best practice
-Move the aggregate test to the same package for the test directory
2018-12-18 14:52:54 +01:00
Steven van Beelen 3553fb7506 BAEL-2435 Update commands and events
-Change TargetAggregateIdentifier import statement to the new location
-Add equals/hashcode as best practice for commands and events
-Add description
-Change parent to parent-boot-2 to leverage a spring boot start up
approach
2018-12-18 14:49:30 +01:00
Steven van Beelen 11b1112771 BAEL-2435 Update the event handler
Change the event handler to become a spring service, as this way Axon
will automatically pick it up as an event handling component
2018-12-18 14:48:10 +01:00
Steven van Beelen bd4881d478 BAEL-2435 Update Aggregate in regards to latest axon version
-Replace old import statements for the new locations
-Mark the aggregate as @Aggregate to make it autowired through the
spring boot starter
-Move all command handlers/decision making functions to the top of the
file
-Rename the command handler to `handle` as a best practice for command
handlers
-Use @EventSourcingHandler i.o. @EventHandler as a best practice for
event handlers in Aggregates, as those only are used to 'source' the
aggregate
-Update test case according to latest standards
2018-12-18 14:47:23 +01:00
Steven van Beelen cf56b33b9b BAEL-2435 Update pom file
-Add description
-Change parent to parent-boot-2 to leverage a spring boot start up
approach
-Replace core dependency for axon-spring-boot-autoconfigure excluding
axon-server as we cant start that up for this use case
-Add spring-boot-autoconfigure dependency
-Adjust the axon version to 4.0.3
2018-12-18 14:43:32 +01:00
Eric Martin f0d27bc7ac
Merge pull request #5833 from f41thful/BAEL-2412
BAEL-2412
2018-12-17 22:40:42 -06:00
Javier 4ea86703d4 BAEL-2412
Change method names to a BDD-style.
2018-12-18 05:27:49 +01:00
FrancoCorleone fb210d0499 BAEL-2090 Insert With JPA
* Adding inserts for JPA objects repositories

* Refactor tests

* Small refactor

* Small refactor

* Remove redundant @Repository annotation

* Refactor tests

* Change to simple entity manager implementation

* Refactor changes
2018-12-17 18:56:30 -07:00
Loredana Crusoveanu 2af8ce7656
Merge pull request #5940 from JonCook/master
BAEL-2175 - Verbose Garbage Collection in Java
2018-12-17 19:51:26 +02:00
Hai Nguyen 4a55426727 BAEL-2230 Equivalent of Java static final in Kotlin (#5848)
* constant unit test

* kotlin const
2018-12-17 09:39:41 -07:00
Eric Martin 2bec14597a
Merge pull request #5934 from rockoder/java11-string
Java 11 String APIs
2018-12-17 07:05:46 -06:00
Emily Cheyne 9297099abf
BAEL-1049 update readme (#5941) 2018-12-16 16:28:09 -08:00
Jonathan Paul Cook ab2ee364f2 BAEL-2175 - Verbose Garbage Collection in Java 2018-12-16 22:32:09 +01:00
Loredana Crusoveanu 997587095a
Merge pull request #5932 from eugenp/BAEL-10808
add readmes, remove extra modules
2018-12-16 22:51:31 +02:00
rodolforfq c53211dbef BAEL-2432 (#5936)
Article's companion code.
2018-12-16 12:07:31 -08:00
dev-chirag ad03c69e01 BAEL-2100 Custom Lombok Annotation (#5918) 2018-12-16 11:50:17 -08:00
Loredana a40c2f2601 fix pom 2018-12-16 20:11:53 +02:00
Loredana Crusoveanu bd32693a46
Merge pull request #5935 from eugenp/BAEL-10840
move ftp file
2018-12-16 20:10:01 +02:00
Loredana Crusoveanu 9f0b61f1a4
Merge pull request #5929 from amdegregorio/master
Pull Request for Guide to Java Packages
2018-12-16 20:08:12 +02:00
Laurentiu Delcea d8e34dc9f2 BAEL-2376 Inline classes in kotlin (#5842)
* BAEL-2376 Inline classes in kotlin

* BAEL-2376 Move classes
2018-12-16 13:22:22 -03:00
Loredana Crusoveanu de3479ca78
Merge pull request #5928 from amit2103/BAEL-10127
[BAEL-10127] - Added code for modelmapper article
2018-12-16 17:27:19 +02:00
Jonathan Paul Cook 6d42a8dbcd Merge remote-tracking branch 'upstream/master' 2018-12-16 16:22:14 +01:00
Loredana ca3a38aa0a move ftp file 2018-12-16 17:20:58 +02:00
Loredana 53dc48b94a fix cassandra parent 2018-12-16 17:13:50 +02:00
Loredana Crusoveanu abbbf998fd
Merge pull request #5865 from amit2103/BAEL-10840
[BAEL-10840] - Create a libraries-apache-commons module
2018-12-16 17:02:43 +02:00
Ganesh Pagade 12e2e09033 Java 11 String APIs 2018-12-16 20:27:29 +05:30
Loredana Crusoveanu ea13a1e794
Merge pull request #5652 from chandra1123/BAEL-2313-String-to-byte-array
Bael 2313 string to byte array
2018-12-16 16:31:10 +02:00
Loredana c97e97d175 add readmes, remove extra modules 2018-12-16 16:25:49 +02:00
Loredana Crusoveanu bc7ef6f809
Merge pull request #5926 from eugenp/lor6-patch-11
Create README.md
2018-12-16 14:59:21 +02:00
amdegregorio 1e29af79ff Example code for Guide to Packages 2018-12-16 06:58:45 -05:00
Loredana Crusoveanu 0b929240fb
Merge pull request #5830 from eugenp/fix-jedis-map
fix jedis map ex
2018-12-16 13:46:43 +02:00
amit2103 5174d9495b [BAEL-10840] - Moved FTP related code back to libraries module 2018-12-16 17:11:21 +05:30
amit2103 ea25895da1 Fixed conflicts 2018-12-16 16:45:48 +05:30
amit2103 d9ac59cd13 [BAEL-10127] - Added code for modelmapper article 2018-12-16 16:37:45 +05:30
Loredana Crusoveanu b4e1d7779f
Create README.md 2018-12-16 12:48:55 +02:00
Loredana Crusoveanu 46c8f48d3c
Merge branch 'master' into BAEL-2313-String-to-byte-array 2018-12-16 12:39:51 +02:00
Dhawal Kapil 0f443d3006 Task/bael 10829 4 (#5925)
* BAEL-10829 Commented out spring-data-elasticsearc

* BAEL-10829 commented out spring-data-elasticsearch project

* Revert "BAEL-10829 Commented out spring-data-elasticsearc"

This reverts commit 84b7b4086435ac25a14841199145cc5d9e5c4beb.
2018-12-16 11:24:35 +02:00
Graham Cox 6ede1b7440 Kovert examples (#5831) 2018-12-16 08:21:41 +01:00
kyleandari 94f4092314 BAEL-2431 Implementing multi-inheritance and Polymorphism using interfaces (#5924)
* Implementing Hexagonal Architecture in java

* Implementing multi-inheritance and Polymorphism using interfaces

* Removing hexagonal code

* Deleting hexagonal architecture code

* fix for unit test names
2018-12-15 14:35:09 -08:00
Loredana Crusoveanu 1fc93000b6
Merge pull request #5920 from eugenp/remove-flips
remove flips module
2018-12-15 19:33:54 +02:00