5902 Commits

Author SHA1 Message Date
Steven van Beelen
41d47f8aa6 Update Projection
Add event handlers to update the products map of the OrderedProduct
model

#BAEL-4767
2021-03-19 11:08:42 +01:00
Steven van Beelen
886368a4c3 Update Command Model
Adjust the OrderAggregate to contain an OrderLine aggregate member. The
OrderLine is added as soon as a Product is added through the
AddProductCommand. The OrderLine member is capable of handling the
increment and decrement product count commands, to increase/decrease the
 number of instances for that OrderLine. Decreasing the count below 1
 will publish the ProductRemovedEvent from within the OrderLine.
 Additional business validation is added to unsure a given Product isn't
  added twice (adding a second should go through increment) and that the
   products aren't adjusted as soon as the product is confirmed.

#BAEL-4767
2021-03-19 11:07:26 +01:00
Steven van Beelen
ef1167b037 Update Exception API
- Introduce a DuplicateOrderLineException to signal whenever somebody
wants to add the same product twice instead of using the increment
command.
- Introduce OrderAlreadyConfirmedException to signal whenever the order
is confirmed, so that adding products and incrementing/decrementing
their count is not possible once the order has been confirmed

#BAEL-4767
2021-03-19 11:04:12 +01:00
Steven van Beelen
2b2aff5ceb Update Query API
Change the OrderedProduct model such that it contains a map of products
having the count as its value, instead of a single product.

#BAEL-4767
2021-03-19 11:01:19 +01:00
Steven van Beelen
a9812052df Update Event API
- Adjust OrderPlacedEvent to only construct the order
- Introduce ProductAddedEvent to be able to add several products
to a order
- Introduce ProductCountIncrementedEvent to increase the number of
product instances for a given Order
- Introduce ProductCountDecrementedEvent to increase the number of
product instances for a given Order
- Introduce ProductRemovedEvent to signal whenever all the product count
 drops below 1

#BAEL-4767
2021-03-19 10:59:26 +01:00
Steven van Beelen
10c0f2302e Update Command API
- Adjust PlaceOrderCommand to only construct the order
- Introduce AddProductCommand to be able to add several products to an
order
- Introduce IncrementProductCountCommand to increase the number of
product instances for a given Order
- Introduce DecrementProductCountCommand to increase the number of
product instances for a given Order

#BAEL-4767
2021-03-19 10:57:51 +01:00
Steven van Beelen
b585b6eb7b Update Axon version
Update Axon version to 4.4.7 (current most recent)

#BAEL-4767
2021-03-19 10:53:34 +01:00
mdabrowski-eu
ba83b760d3 BAEL-4716 HashMap optimization (#10479) 2021-02-14 16:51:51 +01:00
Loredana Crusoveanu
65520720aa Merge pull request #10483 from rozagerardo/rozagerardo/JAVA-4311_improve-webclient-article--fix-integration-test
[JAVA-4311] Improve "Spring Webclient" article -- fix integration test failing on server
2021-02-14 08:27:30 +02:00
Jordan Simpson
354018732d Added a new module (spring-core-5) for the code examples of BAEL-4764. (#10484) 2021-02-13 12:29:50 -08:00
Gerardo Roza
19d64f6152 change just to stick to original variable declaration approach 2021-02-12 20:17:12 -03:00
Gerardo Roza
dc6e305e1f fixed potential error using webClient without specifying url, and improved timeout test case 2021-02-12 20:08:12 -03:00
Hamid Reza Sharifi
89eb93a46c Bael-4684-Prevent Cross-Site Scripting (XSS) in a Spring application-(new) (#10480)
* #bael-4684: add main source code

* #bael-4684: add test

* #bael-4684: add required dependencies
2021-02-12 10:50:52 +00:00
Loredana Crusoveanu
8f9b48231f Merge pull request #10476 from johnA1331/master
BAEL-33158 - github-related test fix (03.02.2021)
2021-02-12 10:33:35 +02:00
bfontana
198d355ff4 Merge pull request #10433 from Saber-k/master
[BAEL-4214] Converting java.util.Properties to HashMap<String,String>
2021-02-11 23:41:37 -03:00
davidmartinezbarua
82023cf57a Merge pull request #10434 from MeenaGawande/master
[BAEL-4715] Java HashMap Load Factor
2021-02-11 11:06:19 -03:00
johnA1331
676bc680f2 Update README.md 2021-02-11 19:06:27 +08:00
johnA1331
db46684ab9 Update README.md 2021-02-11 18:20:25 +08:00
johnA1331
92b4049195 Update README.md 2021-02-11 01:07:33 +08:00
kwoyke
153f600c62 BAEL-4758: Override autoIndexCreation in MongoConfig (#10474) 2021-02-10 07:51:44 +01:00
Mateusz Szablak
0315847ad7 Update PropertiesToHashMapConverter.java 2021-02-10 00:40:55 +01:00
johnA1331
ec93dbe7f2 Update README.md 2021-02-10 02:41:03 +08:00
johnA1331
5ae0cce72e Update README.md 2021-02-10 02:25:06 +08:00
johnA1331
e043ad6d20 Update README.md 2021-02-10 02:19:55 +08:00
johnA1331
5d2087c711 Update README.md 2021-02-10 02:04:28 +08:00
johnA1331
15d247be80 Update README.md 2021-02-10 01:59:24 +08:00
johnA1331
25d4cd9222 Update README.md 2021-02-10 01:55:38 +08:00
johnA1331
0e93e2f779 Update README.md 2021-02-10 01:52:55 +08:00
johnA1331
d9fcd0de34 Update README.md 2021-02-10 01:49:18 +08:00
johnA1331
5ab8f0678f Update README.md 2021-02-10 01:46:38 +08:00
johnA1331
43efec8e23 Update README.md 2021-02-10 01:44:24 +08:00
johnA1331
9e867ffc0d Update README.md 2021-02-10 01:20:19 +08:00
johnA1331
944c965952 Update README.md 2021-02-10 01:17:27 +08:00
johnA1331
59da123a98 Create README.md 2021-02-10 01:15:15 +08:00
johnA1331
9ed2982f8f Update README.md 2021-02-10 01:12:06 +08:00
johnA1331
4f0173ebae Update README.md 2021-02-10 01:08:46 +08:00
Loredana Crusoveanu
1b58dba5ac Merge pull request #10471 from kwoyke/JAVA-4395
JAVA-4395: Fix typo in addTagsOfOtherProduct method
2021-02-09 10:41:01 +02:00
Amy DeGregorio
6c5c6fe317 BAEL-4331 (#10460)
* BAEL-4331

* Add an integration test
2021-02-08 18:11:25 -08:00
Krzysiek
23ee2df79e JAVA-4395: Fix typo in addTagsOfOtherProduct method 2021-02-08 22:48:54 +01:00
Eric Martin
d89a51b555 Merge pull request #10464 from sk1418/BAEL-4699_probes
upgrade to springboot 2.3.2 and fix application properties
2021-02-07 16:37:12 -06:00
bfontana
b8e4a9a0b9 Merge pull request #10409 from rojyates/master
BAEL-4614 JVM property java.security.egd
2021-02-06 00:18:11 -03:00
Eric Martin
30e84898fd Merge pull request #10458 from sk1418/BAEL-4709_isAbstract
improvement
2021-02-05 16:53:11 -06:00
Dhawal Kapil
030b5cca02 Merge pull request #10461 from osser-sam/JAVA-4312
JAVA-4312: Update deprecations in spring-5-reactive module
2021-02-04 22:35:33 +05:30
Loredana Crusoveanu
790c196507 Merge pull request #10469 from johnA1331/master
BAEL-31916 - add links to github-baeldung articles
2021-02-04 13:04:50 +02:00
johnA1331
bb5c238631 Update README.md 2021-02-04 00:14:49 +08:00
johnA1331
d779223e57 Update README.md 2021-02-04 00:13:24 +08:00
johnA1331
44552d1fa4 Update README.md 2021-02-04 00:10:36 +08:00
johnA1331
1bc84889aa Update README.md 2021-02-04 00:09:00 +08:00
johnA1331
2a365df318 Update README.md 2021-02-04 00:07:17 +08:00
johnA1331
3ff1ba2185 Update README.md 2021-02-04 00:03:53 +08:00