Subversion Repository Public Repository

Aurocare_27_07_2018

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcarecommonutil.vo;

import com.bestray.healthcarecommonutil.vo.TAccountDepartment;
import com.bestray.healthcarecommonutil.vo.TRole;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 *
 * @author user3
 */

@NamedQueries(value = {
    @NamedQuery(name = "findRoles", 
                query = "from TAccDeptRole where accountDeptId = ? "),
    @NamedQuery(name = "finddeptrolemap", 
        query = "from TAccDeptRole t where t.accountDeptId = ? and t.roleId =?")
})
@Entity
@Table(name="t_acc_dept_role")
public class TAccDeptRole implements java.io.Serializable{
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @ManyToOne
    @JoinColumn(name="acc_dept_id")
    private TAccountDepartment accountDeptId;
    
    @ManyToOne
    @JoinColumn(name="role_id")
    private TRole roleId;
    
    /** The record version. */
    @Version
    @Column(name = "record_version")
    private Long recordVersion;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public TAccountDepartment getAccountDeptId() {
        return accountDeptId;
    }

    public void setAccountDeptId(TAccountDepartment accountDeptId) {
        this.accountDeptId = accountDeptId;
    }

    public TRole getRoleId() {
        return roleId;
    }

    public void setRoleId(TRole roleId) {
        this.roleId = roleId;
    }

    public Long getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(Long recordVersion) {
        this.recordVersion = recordVersion;
    }
    
    
}

Commits for Aurocare_27_07_2018/AuroCareCommonUtil/src/main/java/com/bestray/healthcarecommonutil/vo/TAccDeptRole.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:21:55 +0000