Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.service.revision.model

File Remote.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart4.png
46% of files have more coverage

Code metrics

0
6
6
1
45
34
6
1
1
6
1

Classes

Class Line # Actions
Remote 12 6 6
0.3333333433.3%
 

Contributing tests

This file is covered by 2 tests. .

Source view

1    package io.sunshower.service.revision.model;
2   
3    import io.sunshower.model.core.Schemata;
4    import io.sunshower.model.core.auth.Credential;
5    import io.sunshower.net.validation.Url;
6    import io.sunshower.persistence.core.DistributableEntity;
7    import javax.persistence.*;
8    import javax.validation.constraints.NotNull;
9   
10    @Entity
11    @Table(name = "GIT_REMOTE", schema = Schemata.SUNSHOWER)
 
12    public class Remote extends DistributableEntity {
13   
14    @Basic @NotNull private String name;
15   
16    @Url @Basic @NotNull private String uri;
17   
18    @OneToOne(cascade = CascadeType.ALL)
19    @JoinColumn(name = "credential_id")
20    private Credential credential;
21   
 
22  0 toggle public String getName() {
23  0 return name;
24    }
25   
 
26  2 toggle public void setName(String name) {
27  2 this.name = name;
28    }
29   
 
30  0 toggle public String getUri() {
31  0 return uri;
32    }
33   
 
34  2 toggle public void setUri(String uri) {
35  2 this.uri = uri;
36    }
37   
 
38  0 toggle public Credential getCredential() {
39  0 return credential;
40    }
41   
 
42  0 toggle public void setCredential(Credential credential) {
43  0 this.credential = credential;
44    }
45    }