Commit Graph

6339 Commits

Author SHA1 Message Date
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
psevestre d1a87c711b [BAEL-4849] Article code (#10566) 2021-03-18 12:15:04 -07:00
Loredana Crusoveanu 438b8163ca Merge pull request #10563 from johnA1331/master
BAEL-33792 - add links to github-baeldung articles
2021-03-17 18:37:26 +02:00
johnA1331 352245c38b Create README.md 2021-03-17 23:10:53 +08:00
johnA1331 33d9d8ed9d Update README.md 2021-03-17 23:08:46 +08:00
johnA1331 a550caa25c Update README.md 2021-03-17 23:05:02 +08:00
Maiklins 8df2f0f841 Java 4278 update override properties article (#10555)
* JAVA-4278 Update "Override Properties" article

* JAVA-4278 Update override properties article (use JUnit 5)

Co-authored-by: mikr <michael.krimgen@ximedes.com>
2021-03-17 00:20:06 +05:30
Dhawal Kapil 15f373230f Merge pull request #10561 from Maiklins/JAVA-4863-Update_spring-cloud-zuul_module
JAVA-4863 Update Spring cloud version
2021-03-17 00:18:47 +05:30
Yavuz Tas b5032bd3d6 BAEL-4322 add sample codes for dynamic delay setting (#10531)
Co-authored-by: Yavuz Tas <ytas@vwd.com>
2021-03-15 21:19:20 -05:00
mikr 3737e930b9 JAVA-4863 Update Spring cloud version 2021-03-15 23:28:11 +01:00
Dhawal Kapil 5ccfcb196f Merge pull request #10557 from Maiklins/JAVA-4862-Update_spring-boot-deployment_module
Java 4862 update spring boot deployment module
2021-03-15 23:40:35 +05:30
vishal b85fde323c BAEL-4785 | Add scenarios to demonstrate the spring naming strategies 2021-03-15 13:36:20 +01:00
Loredana Crusoveanu 7e1dd6103a Merge pull request #10475 from michaelzangl/patch-1
Update README.md
2021-03-15 11:19:32 +02:00
mikr 880d7fe036 JAVA-4862 Update spring-boot-deployment module 2021-03-14 23:31:18 +01:00
Kent@lhind.hp.g5 0290234485 fix the initial maxSum and add test 2021-03-14 22:50:20 +01:00
Jordan Simpson af0b504061 Add code from article (#10552) 2021-03-14 13:18:13 -07:00
Greg 18bd57a704 Merge pull request #10538 from hmdrzsharifi/BAEL-4793_Get_all_endpoints_in_Spring
bael-4793: add main source
2021-03-14 13:22:36 -04:00
LiamGve 0f14a631ab Bael 4805 Decode a JWT Token in Java (#10535)
* BAEL-4805 Added the code for Decoding a JWT Token in Java tutorial

* BAEL-4805 Added newline at end of test file to conform to standards

* BAEL-4805 renamed test class to conform to naming standard for unit tests

* BAEL-4805 removed @DisplayName annotations as they are redundant

* BAEL-4805 changed assertion to be the user name in payload section to be more meaningful to reader

Co-authored-by: Liam Garvie <liamgarvie@Liams-MacBook-Pro.local>
2021-03-14 00:12:16 +00:00
Maiklins 7b46999279 Merge pull request #86 from eugenp/master
update
2021-03-13 23:54:00 +01:00
Eric Martin 2bfeafd169 Merge pull request #10544 from sk1418/springdatajdbc
using query method
2021-03-13 14:07:43 -06:00
Eric Martin 74aebe1a62 Merge pull request #10542 from sk1418/threadPool
shutdown the pool
2021-03-13 14:00:26 -06:00
Eric Martin 14aac09d18 Merge pull request #10509 from dstr89/feature/BAEL-4618-final-performance
Feature/bael 4618 final performance
2021-03-13 08:49:59 -06:00
Dhawal Kapil 71d80d8991 Merge pull request #10550 from kwoyke/JAVA-4240
JAVA-4240: Add exception's message to the log
2021-03-13 01:08:35 +05:30
Dhawal Kapil aa466da2ce Merge pull request #10547 from freelansam/JAVA-3961
JAVA-4802: Upgrade parent-spring-5 to the latest version of Spring 5
2021-03-13 01:07:01 +05:30
kwoyke 639ac629cd BAEL-4835: Initialize test data (#10548) 2021-03-12 16:34:29 +01:00
Loredana Crusoveanu 8748c7ea6f Merge pull request #10549 from kwoyke/JAVA-4669
JAVA-4669: Fix CircularBuffer constructor
2021-03-12 09:13:28 +02:00
Jordan Simpson eea3ae3084 BAEL-4685 (#10418)
* Add code examples for article BAEL-4685

* Add tests for the endpoints.

* Rename RequestTimeoutTests.java to RequestTimeoutUnitTest.java
2021-03-11 23:04:20 -08:00
Krzysztof Woyke 6332f7eba4 JAVA-4240: Fix catch block 2021-03-11 20:58:45 +01:00
Krzysztof Woyke 47db80077d JAVA-4240: Add exception's message to the log 2021-03-11 20:39:47 +01:00
Anshul BANSAL 9928946793 BAEL-4790_examples 2021-03-11 21:39:09 +02:00
Krzysztof Woyke 0545265255 JAVA-4669: Fix CircularBuffer constructor 2021-03-11 20:12:28 +01:00
sampadawagde bd81992f66 JAVA-4802: Upgrade parent-spring-5 to the latest version of Spring 5 2021-03-11 16:53:44 +05:30
Daniel Strmecki 4e88e662f6 BASE-4618: Use space 2021-03-11 11:28:49 +01:00
Loredana Crusoveanu c9bc95a5e2 Merge pull request #10546 from johnA1331/master
BAEL-32619 - add links to github-baeldung articles
2021-03-11 10:04:18 +02:00
MeenaGawande 13970d355b [BAEL-4208] Java compiled classes contain dollar signs (#10533)
Java class file naming conventions

Co-authored-by: MeenaGawande <MeenaGawande@users.noreply.github.com>
2021-03-11 07:44:57 +01:00
sharifi 023da91f09 bael-4793: match artifact id with name 2021-03-11 08:55:51 +03:30
sharifi 3f19c9f6e8 bael-4793: fix indentation 2021-03-11 08:55:20 +03:30
johnA1331 f31bbf290d Create README.md 2021-03-10 22:55:00 +08:00
johnA1331 5ffb5e9eca Create README.md 2021-03-10 22:52:28 +08:00
johnA1331 c98d1d243e Update README.md 2021-03-10 21:19:07 +08:00
johnA1331 8c86197317 Update README.md 2021-03-10 21:14:40 +08:00
Kent@lhind.hp.g5 a83d25884e using query method 2021-03-10 11:28:43 +01:00
Amitabh Tiwari d010629fd5 Added changes to fix the tests 2021-03-09 20:23:15 +05:30
Eric Martin 1df7c8a287 Merge pull request #10524 from saleco/master
BAEL-4362 - Generate WSDL Stubs with Maven
2021-03-08 19:13:11 -06:00
Sallo Szrajbman dddfc05349 BAEL-4362 - Generate WSDL Stubs with Maven
Removing blank lines
Fixing test names to BDD-style
2021-03-08 21:15:42 +00:00