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

create a function to reset dbIds #31

Open
pahjbo opened this issue Dec 8, 2023 · 0 comments
Open

create a function to reset dbIds #31

pahjbo opened this issue Dec 8, 2023 · 0 comments
Labels
enhancement New feature or request Java is only for the java implementation

Comments

@pahjbo
Copy link
Member

pahjbo commented Dec 8, 2023

There can be times when it is necessary to reset the db Ids of an existing object - e.g. when wanting to create a new db entry with
JPA persist

The current workaround is to use the copy constructor (which is deep and respects references) however this is inefficient in both memory and time in the cases where the original object is no longer needed.

@pahjbo pahjbo added enhancement New feature or request Java is only for the java implementation labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Java is only for the java implementation
Projects
None yet
Development

No branches or pull requests

1 participant