Skip to content

Commit 17d6730

Browse files
committed
MongoDB
1 parent c98e2a4 commit 17d6730

File tree

2 files changed

+23
-0
lines changed
  • Part-9.SpringBoot-React-Projects/Project-8.SpringBoot-GitApi-CodeChecking/src/main

2 files changed

+23
-0
lines changed

Part-9.SpringBoot-React-Projects/Project-8.SpringBoot-GitApi-CodeChecking/src/main/java/com/urunov/pairing/repository/GitCommitRepo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import com.urunov.pairing.data.GitCommit;
44
import org.springframework.data.mongodb.repository.MongoRepository;
5+
import org.springframework.stereotype.Repository;
56

7+
@Repository
68
public interface GitCommitRepo extends MongoRepository<GitCommit, Integer> {
79
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use activecode;
2+
db.posts.insertMany([
3+
{
4+
title: 'Post Two',
5+
body: 'Body of post two',
6+
category: 'Technology',
7+
date: Date()
8+
},
9+
{
10+
title: 'Post Three',
11+
body: 'Body of post three',
12+
category: 'News',
13+
date: Date()
14+
},
15+
{
16+
title: 'Post Four',
17+
body: 'Body of post three',
18+
category: 'Entertainment',
19+
date: Date()
20+
}
21+
])

0 commit comments

Comments
 (0)