babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
727 stars 72 forks source link

[fr] Support embeddable types as top level classes in DTO language #511

Closed belovaf closed 5 months ago

belovaf commented 5 months ago

It is very common to accept a part of entity from a controller, save it to a db, and then show it from another controller. In such cases embeddable objects are perfect fit. Unfortunately for now embeddable objects can't be safely used as input dto because they may have unloaded fields (if such fields are absent in json). It would very convenient to create input dtos for embeddable objects with jimmer dto language to reduce mapping boilerplate.

babyfish-ct commented 5 months ago

Try 0.8.122