Coverage Report - com.ctrip.framework.apollo.biz.entity.ServerConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
ServerConfig
42%
6/14
N/A
1
 
 1  
 package com.ctrip.framework.apollo.biz.entity;
 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  19
 public class ServerConfig extends BaseEntity {
 20  
   @Column(name = "Key", nullable = false)
 21  
   private String key;
 22  
 
 23  
   @Column(name = "Cluster", nullable = false)
 24  
   private String cluster;
 25  
 
 26  
   @Column(name = "Value", nullable = false)
 27  
   private String value;
 28  
 
 29  
   @Column(name = "Comment", nullable = false)
 30  
   private String comment;
 31  
 
 32  
   public String getKey() {
 33  0
     return key;
 34  
   }
 35  
 
 36  
   public void setKey(String key) {
 37  18
     this.key = key;
 38  18
   }
 39  
 
 40  
   public String getValue() {
 41  5
     return value;
 42  
   }
 43  
 
 44  
   public void setValue(String value) {
 45  18
     this.value = value;
 46  18
   }
 47  
 
 48  
   public String getComment() {
 49  0
     return comment;
 50  
   }
 51  
 
 52  
   public void setComment(String comment) {
 53  0
     this.comment = comment;
 54  0
   }
 55  
 
 56  
   public String getCluster() {
 57  0
     return cluster;
 58  
   }
 59  
 
 60  
   public void setCluster(String cluster) {
 61  0
     this.cluster = cluster;
 62  0
   }
 63  
 
 64  
   public String toString() {
 65  0
     return toStringHelper().add("key", key).add("value", value).add("comment", comment).toString();
 66  
   }
 67  
 }