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

Exclude specific properties from generation-related stuff #14

Open
y9vad9 opened this issue Aug 28, 2022 · 1 comment
Open

Exclude specific properties from generation-related stuff #14

y9vad9 opened this issue Aug 28, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@y9vad9
Copy link
Owner

y9vad9 commented Aug 28, 2022

Is your feature request related to a problem? Please describe.
I'm using implier for generating database-related entities. My case is to not generate mutable property of identifier (I am not supposed to change it), but to make other properties mutable.

Describe the solution you'd like
Probably, we need to have annotation for such stuff. For example ShouldNotMutate or using existing Immutable annotation.

@y9vad9 y9vad9 added the enhancement New feature or request label Aug 28, 2022
@y9vad9 y9vad9 self-assigned this Aug 28, 2022
@y9vad9
Copy link
Owner Author

y9vad9 commented Aug 29, 2022

Also, probably, it will be useful to remove some properties from dtos via @Exclude(target = [ExcludeTarget.DTO])

and same stuff for mutable implementation: @Exclude(target = [ExcludeTarget.MUTABILITY])

@y9vad9 y9vad9 changed the title Disallow generating mutable variants of specific properties Exclude specific properties from generation-related stuff Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant