Fixing detached entity error, entity id is auto generated by hibernate
This commit is contained in:
parent
c7778e80b9
commit
51fbbc933a
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue