You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting up jMolecules integrations requires developers to make a couple of decisions (“Do we use DDD? What architectural style do we want to use? Do we want to use the ByteBuddy-based code generation?”) and then translate those into the declaration of the proper set of dependencies and build plugins.
Furthermore, using the DDD abstractions often requires the creation of multiple code artifacts to complete a logical step. Adding an aggregate to the system requires:
Defining an Identifier type (usually based on a randomly generated UUID).
Defining the aggregate type implementing AggregateRoot assigning an instance of the identifier.
Declaring a repository type to manage the aggregate.
Problem
While developers, of course, have to make these decisions, the details of the dependency declarations are error-prone and easy to get wrong. In addition, the declaration of new aggregates requires a bit of boilerplate code, that's mostly tedious to create.
Idea
Spring CLI allows hooking user-defined commands that can manipulate files, add build dependencies, and create new source files. We could create such commands to initialize jMolecules integrations for Spring Boot applications easily and also generate the boilerplate code needed to add an aggregate to the project.
The text was updated successfully, but these errors were encountered:
Context
Setting up jMolecules integrations requires developers to make a couple of decisions (“Do we use DDD? What architectural style do we want to use? Do we want to use the ByteBuddy-based code generation?”) and then translate those into the declaration of the proper set of dependencies and build plugins.
Furthermore, using the DDD abstractions often requires the creation of multiple code artifacts to complete a logical step. Adding an aggregate to the system requires:
Identifier
type (usually based on a randomly generatedUUID
).AggregateRoot
assigning an instance of the identifier.Problem
While developers, of course, have to make these decisions, the details of the dependency declarations are error-prone and easy to get wrong. In addition, the declaration of new aggregates requires a bit of boilerplate code, that's mostly tedious to create.
Idea
Spring CLI allows hooking user-defined commands that can manipulate files, add build dependencies, and create new source files. We could create such commands to initialize jMolecules integrations for Spring Boot applications easily and also generate the boilerplate code needed to add an aggregate to the project.
The text was updated successfully, but these errors were encountered: