##### Coverage Report - com.ctrip.framework.apollo.portal.entity.po.ServerConfig

Classes in this File | Line Coverage | Branch Coverage | Complexity
ServerConfig |
9% | 1/11
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.portal.entity.po;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.common.entity.BaseEntity;
4 |  |
5 |  |
     import org.hibernate.annotations.SQLDelete;
6 |  |
     import org.hibernate.annotations.Where;
7 |  |
8 |  |
     import javax.persistence.Column;
9 |  |
     import javax.persistence.Entity;
10 |  |
     import javax.persistence.Table;
11 |  |
12 |  |
     /**
13 |  |
      * @author Jason Song(song_s@ctrip.com)
14 |  |
      */
15 |  |
     @Entity
16 |  |
     @Table(name = "ServerConfig")
17 |  |
     @SQLDelete(sql = "Update ServerConfig set isDeleted = 1 where id = ?")
18 |  |
     @Where(clause = "isDeleted = 0")
19 | 1 |
     public class ServerConfig extends BaseEntity {
20 |  |
       @Column(name = "Key", nullable = false)
21 |  |
       private String key;
22 |  |
23 |  |
       @Column(name = "Value", nullable = false)
24 |  |
       private String value;
25 |  |
26 |  |
       @Column(name = "Comment", nullable = false)
27 |  |
       private String comment;
28 |  |
29 |  |
       public String getKey() {
30 | 0 |
         return key;
31 |  |
       }
32 |  |
33 |  |
       public void setKey(String key) {
34 | 0 |
         this.key = key;
35 | 0 |
       }
36 |  |
37 |  |
       public String getValue() {
38 | 0 |
         return value;
39 |  |
       }
40 |  |
41 |  |
       public void setValue(String value) {
42 | 0 |
         this.value = value;
43 | 0 |
       }
44 |  |
45 |  |
       public String getComment() {
46 | 0 |
         return comment;
47 |  |
       }
48 |  |
49 |  |
       public void setComment(String comment) {
50 | 0 |
         this.comment = comment;
51 | 0 |
       }
52 |  |
53 |  |
       public String toString() {
54 | 0 |
         return toStringHelper().add("key", key).add("value", value).add("comment", comment).toString();
55 |  |
       }
56 |  |
     }