DreamStar
DreamStar
欢迎交流, 大家一起摸索前进! 以下是我个人的一些观点和建议 - IOC,DI做全局的注入, 在程序入口做, 做在domain里会导致抽象和实现绑定了, 没有达到IOC的意图, 即推迟决定实现 - entity这个单位很小, 建议你改换model. AggregateRoot可由1..n个entity组成. - 到了model这一层已经是最底层了, 实体不必要在使用接口了, 没有控制反转的需求了 - service和repo最好也分开, service如果是领域服务那其实现也在domain中(一般就一个实现,不需要接口, 多实现是策略的时候), 但是repo的实现是在infrastructure层的, 如果service是防腐用实现可以在infrastructure层. - 前端场景控件逻辑要内聚, 组件内操作控件模型和视图模型以及应用服务组成组件的业务逻辑, 视图负责渲染即可.
@schauder The `owner` (`RelationalPersistentEntity`) returned by `EmbeddedRelationalPersistentProperty` is the `owner` of its delegate. The creator of the owner gets the creation value from its own properties. The property of `RelationalPersistentEntity`...
If child entities can inject custom filtering conditions, why not give the same mechanism to the aggregate root? Combined with the existing SpEL mechanism, this can also achieve multi-tenancy in...
These are some of my ideas, which directly provide the highest flexibility. Soft deletion and shared mode multi-tenancy and some other possible requirements are based on some conditions to add...
When your query result is an aggregate root, data-jdbc will load the sub-entities for you. The generation of SQL corresponding to this sub-entity also goes through ConditionFilter. The method parameters...
@appreciated @schauder What do you (your team) think?
This should work fine with just the annotations, and should not require special forms of method names. Currently, even if it is a normal getter, it will not take effect...
Methods in embedded objects should also support write-only fields, and also support prefixes. Is there any current plan for this enhancement? @schauder At present, the processing of some calculated properties...
That's right, it means that both idColumn and keyColumn need to have this capability. keyColumn should also be supported in the design. When a child entity of an aggregate root...
Maybe it's something wrong with my description or I've abused this feature. Let me give you a simple example. This is expected. ```java record GoodsId( int type, String code )...