Passed
Push — master ( 676f65...74c283 )
by Huu-Phat
02:02 queued 13s
created

com.dawn.jat.illuminati.post.repository.PostRepositoryTemplateImpl   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
c 0
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A savePost(PostEntity) 0 3 1
1
package com.dawn.jat.illuminati.post.repository;
2
3
import com.dawn.jat.illuminati.post.entity.PostEntity;
4
import lombok.Generated;
5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.context.annotation.Configuration;
7
import org.springframework.data.mongodb.core.MongoTemplate;
8
import org.springframework.stereotype.Repository;
9
10
@Generated
11
@Configuration
12
@Repository
13
public class PostRepositoryTemplateImpl implements PostRepositoryTemplate {
14
    @Autowired
15
    MongoTemplate mongoTemplate;
16
17
    @Override
18
    public PostEntity savePost(PostEntity post) {
19
        return mongoTemplate.save(post);
20
    }
21
}
22