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

Classes in this File | Line Coverage | Branch Coverage | Complexity
Permission |
100% | 7/7
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 = "Permission")
17 |  |
     @SQLDelete(sql = "Update Permission set isDeleted = 1 where id = ?")
18 |  |
     @Where(clause = "isDeleted = 0")
19 | 18 |
     public class Permission extends BaseEntity {
20 |  |
       @Column(name = "PermissionType", nullable = false)
21 |  |
       private String permissionType;
22 |  |
23 |  |
       @Column(name = "TargetId", nullable = false)
24 |  |
       private String targetId;
25 |  |
26 |  |
       public String getPermissionType() {
27 | 9 |
         return permissionType;
28 |  |
       }
29 |  |
30 |  |
       public void setPermissionType(String permissionType) {
31 | 6 |
         this.permissionType = permissionType;
32 | 6 |
       }
33 |  |
34 |  |
       public String getTargetId() {
35 | 9 |
         return targetId;
36 |  |
       }
37 |  |
38 |  |
       public void setTargetId(String targetId) {
39 | 6 |
         this.targetId = targetId;
40 | 6 |
       }
41 |  |
     }