Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Mapping for Lazy #308

Open
JohannesRabauer opened this issue Oct 14, 2024 · 0 comments
Open

Automatic Mapping for Lazy #308

JohannesRabauer opened this issue Oct 14, 2024 · 0 comments

Comments

@JohannesRabauer
Copy link
Contributor

(Migrated from microstream-one/microstream#589)

Is your feature request related to a problem? Please describe.

Whenever you must change some Object-Reference to a Lazy-Reference it is quite difficult, because it is a big change
from a Class-Structure kind of perspective. But exactly this case should be automatically mapped because this can happen quite often, when you are optimizing your application for performance.
Example:
Change a record Root from this:

public record Root(List<Object> myObjects){}

to this:

public record Root(List<Lazy<Object>> myObjects){}

Describe the solution you'd like

The described case should be covered by the Automatic Mapping.
The other way around should work too: From Lazy<Object> to Object.

Describe alternatives you've considered

Right now you must dive into the LegacyTypeMapping with CSV-Files or similar constructs for this specific change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant