Fixing detached entity error, entity id is auto generated by hibernate

This commit is contained in:
Thomas Georgios Giannos 2023-10-06 16:46:44 +03:00
parent c7778e80b9
commit 51fbbc933a
1 changed files with 0 additions and 1 deletions

View File

@ -71,7 +71,6 @@ public class DescriptionTemplateTypeService {
public DescriptionTemplateType persist(DescriptionTemplateType payload) {
DescriptionTemplateTypeEntity created = new DescriptionTemplateTypeEntity();
created.setId(UUID.randomUUID());
created.setName(payload.getName());
created.setStatus(DescriptionTemplateTypeStatus.SAVED.getValue());