Coverage Report - com.ctrip.framework.apollo.biz.entity.Commit
 
Classes in this File Line Coverage Branch Coverage Complexity
Commit
5%
1/18
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  
 @Entity
 13  
 @Table(name = "commit")
 14  
 @SQLDelete(sql = "Update commit set isDeleted = 1 where id = ?")
 15  
 @Where(clause = "isDeleted = 0")
 16  1
 public class Commit extends BaseEntity {
 17  
 
 18  
   @Column(name = "ChangeSets", length = 4048, nullable = false)
 19  
   private String changeSets;
 20  
 
 21  
   @Column(name = "AppId", nullable = false)
 22  
   private String appId;
 23  
 
 24  
   @Column(name = "ClusterName", nullable = false)
 25  
   private String clusterName;
 26  
 
 27  
   @Column(name = "NamespaceName", nullable = false)
 28  
   private String namespaceName;
 29  
 
 30  
   @Column(name = "Comment")
 31  
   private String comment;
 32  
 
 33  
   public String getChangeSets() {
 34  0
     return changeSets;
 35  
   }
 36  
 
 37  
   public void setChangeSets(String changeSets) {
 38  0
     this.changeSets = changeSets;
 39  0
   }
 40  
 
 41  
   public String getAppId() {
 42  0
     return appId;
 43  
   }
 44  
 
 45  
   public void setAppId(String appId) {
 46  0
     this.appId = appId;
 47  0
   }
 48  
 
 49  
   public String getClusterName() {
 50  0
     return clusterName;
 51  
   }
 52  
 
 53  
   public void setClusterName(String clusterName) {
 54  0
     this.clusterName = clusterName;
 55  0
   }
 56  
 
 57  
   public String getNamespaceName() {
 58  0
     return namespaceName;
 59  
   }
 60  
 
 61  
   public void setNamespaceName(String namespaceName) {
 62  0
     this.namespaceName = namespaceName;
 63  0
   }
 64  
 
 65  
   public String getComment() {
 66  0
     return comment;
 67  
   }
 68  
 
 69  
   public void setComment(String comment) {
 70  0
     this.comment = comment;
 71  0
   }
 72  
 
 73  
   @Override
 74  
   public String toString() {
 75  0
     return toStringHelper().add("changeSets", changeSets).add("appId", appId).add("clusterName", clusterName)
 76  0
         .add("namespaceName", namespaceName).add("comment", comment).toString();
 77  
   }
 78  
 }