diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java index 296bedb..3e213f5 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java @@ -159,6 +159,12 @@ this.createdDate = LocalDateTime.now(); //this.lastAccess = LocalDateTime.of(2015, 12, 15, 0, 0); + + var newWork = new Work(); //ユーザーの制作作品の作成 + + newWork.setWork(); + newWork.setAnimation(this); + ownerAccount.addWork(newWork); } //----------------------------------------------------------------- }