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

Classes in this File | Line Coverage | Branch Coverage | Complexity
Role |
100% | 4/4
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 = "Role")
17 |  |
     @SQLDelete(sql = "Update Role set isDeleted = 1 where id = ?")
18 |  |
     @Where(clause = "isDeleted = 0")
19 | 9 |
     public class Role extends BaseEntity {
20 |  |
       @Column(name = "RoleName", nullable = false)
21 |  |
       private String roleName;
22 |  |
23 |  |
       public String getRoleName() {
24 | 5 |
         return roleName;
25 |  |
       }
26 |  |
27 |  |
       public void setRoleName(String roleName) {
28 | 2 |
         this.roleName = roleName;
29 | 2 |
       }
30 |  |
     }