Hello, Looking for recommendations on how to duplicate an object in an entity, the objective is that a object will be duplicated and then modified, this is to avoid having to re-enter all the data associated to an object. I have considered a simple function of : Retrieve Object → Create Object → Commit Object However I am not sure how to avoid overwrite and replacing the value, and if there is a way to only duplicate specific values? Any advice is greatly appreciated
I don't think your question is completely clear, but creating an object, and then setting all the values to the same value of the object that you are copying from, gives you the most control over the process. This way you can decide which values to copy or not.
There's also the community commons Clone and DeepClone java actions, if that's what you are looking for.