Entity mapping improvements and support for account reseller agents#14
Merged
marioserrano09 merged 13 commits intomasterfrom Jul 31, 2025
Merged
Entity mapping improvements and support for account reseller agents#14marioserrano09 merged 13 commits intomasterfrom
marioserrano09 merged 13 commits intomasterfrom
Conversation
…s with new fields and methods
…n in account forms
…ntForm configuration Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request enhances the SaaS module to support account reseller agents functionality while upgrading all module versions from 3.4.0 to 3.4.1. The changes introduce a new agent-based reseller management system with improved entity relationships and comprehensive documentation.
- Version upgrade across all modules to 3.4.1 for compatibility and latest features
- Entity relationship improvements from @OnetoOne to @manytoone for better scalability and data modeling
- Addition of reseller agent functionality with new domain entities, services, and UI components
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| sources/core/src/main/java/tools/dynamia/modules/saas/domain/Account.java | Added reseller agent fields and relationship mappings |
| sources/core/src/main/java/tools/dynamia/modules/saas/domain/AccountReseller.java | Enhanced with agent management capabilities and date tracking |
| sources/core/src/main/java/tools/dynamia/modules/saas/services/AccountResellerService.java | New service interface for reseller and agent operations |
| sources/core/src/main/java/tools/dynamia/modules/saas/services/impl/AccountResellerServiceImpl.java | Implementation of reseller service with CRUD operations |
| sources/ui/src/main/java/tools/dynamia/modules/saas/ui/customizers/AccountFormCustomizer.java | UI customizer for dynamic reseller/agent selection |
| Multiple domain entities | Updated relationships from @OnetoOne to @manytoone for improved data modeling |
| Multiple pom.xml files | Version updates from 3.4.0 to 3.4.1 |
| UI descriptor files | Added form and table configurations for reseller agents |
sources/core/src/main/java/tools/dynamia/modules/saas/domain/Account.java
Outdated
Show resolved
Hide resolved
sources/core/src/main/java/tools/dynamia/modules/saas/domain/AccountReseller.java
Outdated
Show resolved
Hide resolved
sources/core/src/main/java/tools/dynamia/modules/saas/domain/AccountReseller.java
Outdated
Show resolved
Hide resolved
sources/ui/src/main/java/tools/dynamia/modules/saas/ui/customizers/AccountFormCustomizer.java
Show resolved
Hide resolved
sources/core/src/main/java/tools/dynamia/modules/saas/services/AccountResellerService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
…ccountReseller.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ccount.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ccountReseller.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…zers/AccountFormCustomizer.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/AccountResellerService.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ts relationship Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to the SaaS module, including dependency version upgrades, changes to entity relationships, and the addition of new fields and services to enhance functionality. The changes are grouped into dependency updates, entity modifications, and service enhancements.
Dependency Updates:
pom.xmlfiles forapiandcoreto3.4.1from3.4.0, ensuring compatibility with the latest features and fixes. ([[1]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-978f907ee3c84eb4e8cc278641ab9dd89ad9e43f6a39b81803eeb5e7bff64426L29-R35),[[2]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-78e04ac41aa4c32ba3c532640022978c0b8ed25d646cd9f94257baa2cb2c8ea0L25-R28),[[3]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-78e04ac41aa4c32ba3c532640022978c0b8ed25d646cd9f94257baa2cb2c8ea0L52-R57))Entity Modifications:
Account,AccountCharge,AccountLog,AccountPayment,AccountReseller) from@OneToOneto@ManyToOneto better reflect the data model and improve scalability. ([[1]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-866f875e16ea394c7c94e94b7dc242d2d0b68bbebfe8c3db318e0f36f77094d5L81-R82),[[2]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-2bf400d9bef7f1be23edabd929900b9f6be4be2dd43cc269d9ae823733dd2140L32-R33),[[3]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-bb3e53578eee171b7de3dc50a07d7ecc49d0b9ed3fed469b6c8a701be5e5bf1fL37-R37),[[4]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-9f8c5b639cf683fd44d0581ae6102e70c803d636345a49fdcf235a4b11c80e23L46-R49),[[5]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-0120ce050109b9a718b63061657dff9c9158919a1ca9b5496be0c7f76cc05c75L47-R55))AccountandAccountResellerfor reseller management, includingresellerAgent,resellerComments,resellerInvoice, andresellerInvoiceDateinAccount, andagents,startDate,endDate, andcommentsinAccountReseller. Corresponding getter and setter methods were also added. ([[1]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-866f875e16ea394c7c94e94b7dc242d2d0b68bbebfe8c3db318e0f36f77094d5R171-R182),[[2]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-0120ce050109b9a718b63061657dff9c9158919a1ca9b5496be0c7f76cc05c75L47-R55),[[3]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-0120ce050109b9a718b63061657dff9c9158919a1ca9b5496be0c7f76cc05c75R125-R156))LocalDateimport inAccountfor potential future use. ([sources/core/src/main/java/tools/dynamia/modules/saas/domain/Account.javaR43](https://github.com/dynamiatools/module-saas/pull/14/files#diff-866f875e16ea394c7c94e94b7dc242d2d0b68bbebfe8c3db318e0f36f77094d5R43))Service Enhancements:
AccountResellerServiceinterface to manage operations related to resellers and their agents, including methods for retrieving enabled resellers, agents, payments, and accounts. ([sources/core/src/main/java/tools/dynamia/modules/saas/services/AccountResellerService.javaR1-R52](https://github.com/dynamiatools/module-saas/pull/14/files#diff-7c999252bbca4942e4b404013b0973606fd9cb45b9fc47da1098b7564073322fR1-R52))AccountServiceinterface with detailed documentation and additional methods for account management, including retrieving accounts by various criteria, handling payments, and managing cache. ([[1]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-553b16b5bf67059728198dfc87da42156ea06fa4e2e73bf7d6dcd3aca4a43da3L1),[[2]](https://github.com/dynamiatools/module-saas/pull/14/files#diff-553b16b5bf67059728198dfc87da42156ea06fa4e2e73bf7d6dcd3aca4a43da3L21-R236))