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