Pharmacy_09_03_18
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
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.healthcarecommonutil.vo;
import java.util.Date;
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.Temporal;
/**
*
* @author dell
*/
@NamedQueries({
@NamedQuery(
name = "findMaxInvoiceId",
query = "from TInvoice invoice where id=(select max(id) from TInvoice)"
)
})
@Entity
@Table(name="t_invoice")
public class TInvoice implements java.io.Serializable{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name="invoice_no")
private String invoiceNo;
@ManyToOne
@JoinColumn(name="enc_id")
private TPatientEncounter encounter;
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
@Column(name="invoice_date")
private Date invoiceDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getInvoiceNo() {
return invoiceNo;
}
public void setInvoiceNo(String invoiceNo) {
this.invoiceNo = invoiceNo;
}
public TPatientEncounter getEncounter() {
return encounter;
}
public void setEncounter(TPatientEncounter encounter) {
this.encounter = encounter;
}
public Date getInvoiceDate() {
return invoiceDate;
}
public void setInvoiceDate(Date invoiceDate) {
this.invoiceDate = invoiceDate;
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Fri 27 Jul, 2018 07:30:57 +0000 |
|