Skip to content

Commit

Permalink
Merge pull request #151 from Kusitms-28th-MeetUp-C/feature/150-roadmap
Browse files Browse the repository at this point in the history
[fix]: Main custom_roadmap_repository 오류 수정
  • Loading branch information
qogustj committed Nov 20, 2023
2 parents 503ba5c + e1ffe7c commit 83eaa04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.kusitms.mainservice.domain.roadmap.repository;

import com.kusitms.mainservice.domain.roadmap.domain.CustomRoadmap;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.Optional;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.kusitms.mainservice;

import com.kusitms.mainservice.domain.template.domain.CustomTemplateContent;
import com.kusitms.mainservice.domain.template.domain.TemplateContent;
import com.kusitms.mainservice.domain.template.mongoRepository.CustomTemplateContentRepository;
import com.kusitms.mainservice.domain.template.mongoRepository.TemplateContentRepository;
import com.mongodb.client.MongoClient;
import org.junit.jupiter.api.Test;
Expand All @@ -12,6 +14,8 @@ class MainServiceApplicationTests {
@Autowired
TemplateContentRepository templateContentRepository;
@Autowired
CustomTemplateContentRepository customTemplateContentRepository;
@Autowired
private MongoClient mongoClient;
@Test
void contextLoads() {
Expand All @@ -30,13 +34,13 @@ void contextLoads() {
// System.out.println("MongoDB Port: " + port);
// System.out.println("Database Name: " + databaseName);

TemplateContent templateContent = new TemplateContent();
CustomTemplateContent templateContent = new CustomTemplateContent();


templateContent.setTemplateId(1L);
templateContent.setTemplateId(57L);
templateContent.setContent("내용2");

templateContentRepository.save(templateContent);
customTemplateContentRepository.save(templateContent);
}

}

0 comments on commit 83eaa04

Please sign in to comment.