Coverage Report - com.ctrip.apollo.biz.entity.Item
 
Classes in this File Line Coverage Branch Coverage Complexity
Item
5%
1/18
N/A
1
 
 1  
 package com.ctrip.apollo.biz.entity;
 2  
 
 3  
 import javax.persistence.Column;
 4  
 import javax.persistence.Entity;
 5  
 import javax.persistence.Table;
 6  
 
 7  
 import org.hibernate.annotations.SQLDelete;
 8  
 import org.hibernate.annotations.Where;
 9  
 
 10  
 @Entity
 11  
 @Table(name = "Item")
 12  
 @SQLDelete(sql = "Update Item set isDeleted = 1 where id = ?")
 13  
 @Where(clause = "isDeleted = 0")
 14  1
 public class Item extends BaseEntity {
 15  
 
 16  
   @Column(name = "NamespaceId", nullable = false)
 17  
   private long namespaceId;
 18  
 
 19  
   @Column(name = "key", nullable = false)
 20  
   private String key;
 21  
 
 22  
   @Column(name = "value")
 23  
   private String value;
 24  
 
 25  
   @Column(name = "comment")
 26  
   private String comment;
 27  
 
 28  
   @Column(name = "LineNum")
 29  
   private Integer lineNum;
 30  
 
 31  
   public String getComment() {
 32  0
     return comment;
 33  
   }
 34  
 
 35  
   public String getKey() {
 36  0
     return key;
 37  
   }
 38  
 
 39  
   public long getNamespaceId() {
 40  0
     return namespaceId;
 41  
   }
 42  
 
 43  
   public String getValue() {
 44  0
     return value;
 45  
   }
 46  
 
 47  
   public void setComment(String comment) {
 48  0
     this.comment = comment;
 49  0
   }
 50  
 
 51  
   public void setKey(String key) {
 52  0
     this.key = key;
 53  0
   }
 54  
 
 55  
   public void setNamespaceId(long namespaceId) {
 56  0
     this.namespaceId = namespaceId;
 57  0
   }
 58  
 
 59  
   public void setValue(String value) {
 60  0
     this.value = value;
 61  0
   }
 62  
 
 63  
   public Integer getLineNum() {
 64  0
     return lineNum;
 65  
   }
 66  
 
 67  
   public void setLineNum(Integer lineNum) {
 68  0
     this.lineNum = lineNum;
 69  0
   }
 70  
 
 71  
   public String toString() {
 72  0
     return toStringHelper().add("namespaceId", namespaceId).add("key", key).add("value", value)
 73  0
         .add("lineNum", lineNum).add("comment", comment).toString();
 74  
   }
 75  
 }