We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a76fd commit 23d4bafCopy full SHA for 23d4baf
src/main/java/org/woehlke/simpleworklist/project/ProjectServiceImpl.java
@@ -81,6 +81,11 @@ public Project findByProjectId(@Min(1L) long projectId) {
81
public Project add(@NotNull Project entity) {
82
log.info("saveAndFlush");
83
entity.setUuid(UUID.randomUUID().toString());
84
+ if(entity.getContext()!=null){
85
+ if(entity.getContext().getUuid() == null){
86
+ entity.getContext().setUuid(UUID.randomUUID().toString());
87
+ }
88
89
return projectRepository.saveAndFlush(entity);
90
}
91
0 commit comments