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

savePost(PostEntity)   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 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