feat: add support for builder pattern in QuerySpec#94
Conversation
WalkthroughThe primary changes across multiple Changes
Poem
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- backend-core-business-impl/pom.xml (1 hunks)
- backend-core-business-spring-impl/pom.xml (1 hunks)
- backend-core-business/pom.xml (1 hunks)
- backend-core-data-impl/pom.xml (1 hunks)
- backend-core-data/pom.xml (1 hunks)
- backend-core-model/pom.xml (1 hunks)
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (1 hunks)
- pom.xml (1 hunks)
Files skipped from review due to trivial changes (7)
- backend-core-business-impl/pom.xml
- backend-core-business-spring-impl/pom.xml
- backend-core-business/pom.xml
- backend-core-data-impl/pom.xml
- backend-core-data/pom.xml
- backend-core-model/pom.xml
- pom.xml
Additional comments not posted (2)
backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (2)
29-29: Updated import statement to includelombok.Builder.The change from
AccessLeveltoBuilderreflects the addition of the@Builderannotation, aligning with the PR's objectives to enhance theQuerySpecclass with builder pattern functionality.
33-33: Addition of@Builderannotation toQuerySpec.This enhancement introduces a builder pattern, which is beneficial for creating instances of
QuerySpecwith optional parameters in a clean and readable manner. Ensure that all fields in the class are compatible with the builder pattern, especially considering the presence offinalfields and complex initializations.
|
May we discuss whether fluent setters would provide better DX than Lombok |
Make the creation of new QuerySpec instances easier by using chained Accessors. This make the feature not binary compatible, but given that we're just returning QuerySpecs instead of void, everything should compile, thus this is not a breaking change. Closes #93
|
|
Made a different approach with Accessors |
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- backend-core-business-impl/pom.xml (1 hunks)
- backend-core-business-spring-impl/pom.xml (1 hunks)
- backend-core-business/pom.xml (1 hunks)
- backend-core-data-impl/pom.xml (1 hunks)
- backend-core-data/pom.xml (1 hunks)
- backend-core-model/pom.xml (1 hunks)
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java (3 hunks)
- pom.xml (1 hunks)
Files skipped from review as they are similar to previous changes (8)
- backend-core-business-impl/pom.xml
- backend-core-business-spring-impl/pom.xml
- backend-core-business/pom.xml
- backend-core-data-impl/pom.xml
- backend-core-data/pom.xml
- backend-core-model/pom.xml
- backend-core-model/src/main/java/com/flowingcode/backendcore/model/QuerySpec.java
- pom.xml



Summary by CodeRabbit
New Features
QuerySpecmodel with the@Builderannotation for easier instantiation.Chores
1.1.0-SNAPSHOTfor various modules to align with new release.