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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcarecommonutil.vo;

import java.util.Date;
import java.util.Set;
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.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.Version;

// TODO: Auto-generated Javadoc
/**
 * The Class TDoctorInformation.
 *
 * @author user2
 */

@NamedQueries({
	@NamedQuery(
        name = "findAllDoctorsByDepartment",
	query = "from TDoctorInformation where doctor_department_id = ? order by doctor_name asc "
	),
        @NamedQuery(
        name = "findNumberOfDoctors",
	query = "from TDoctorInformation where doctor_name like ? order by doctor_name asc "
	),
        @NamedQuery(
        name = "findDocInfoBYId",
	query = "from TDoctorInformation doc where doc.doctor_id = ?"
	),
        @NamedQuery(
        name = "findAllDoctorList",
	query = "from TDoctorInformation order by doctor_name asc "
	),
})

@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true)
@Table(name="t_doctor_information")

public class TDoctorInformation implements java.io.Serializable{
    
    /** The id. */
    @Id
    //@GeneratedValue
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /** The doctor_id. */
    @Column(name="doctor_id")
    private Long doctor_id;
    
    /** The doctor_name. */
    @Column(name="doctor_name")
    private String doctor_name;
    
    /** The doctor_department_id. */
    @ManyToOne
    @JoinColumn(name="doctor_department_id")
    private TDepartmentMaster doctor_department_id;
    
    /** The monday_from. */
    @Column(name="monday_from")
    private String monday_from;
    
    /** The tuesday_from. */
    @Column(name="tuesday_from")
    private String tuesday_from;
    
    /** The wednesday_from. */
    @Column(name="wednesday_from")
    private String wednesday_from;
    
    /** The thursday_from. */
    @Column(name="thursday_from")
    private String thursday_from;
    
    /** The friday_from. */
    @Column(name="friday_from")
    private String friday_from;
    
    /** The saturday_from. */
    @Column(name="saturday_from")
    private String saturday_from;
    
    /** The sunday_from. */
    @Column(name="sunday_from")
    private String sunday_from;
    
    /** The monday_to. */
    @Column(name="monday_to")
    private String monday_to;
    
    /** The tuesday_to. */
    @Column(name="tuesday_to")
    private String tuesday_to;
    
    /** The wednesday_to. */
    @Column(name="wednesday_to")
    private String wednesday_to;
    
    /** The thursday_to. */
    @Column(name="thursday_to")
    private String thursday_to;
    
    /** The friday_to. */
    @Column(name="friday_to")
    private String friday_to;
    
    /** The saturday_to. */
    @Column(name="saturday_to")
    private String saturday_to;
    
    /** The sunday_to. */
    @Column(name="sunday_to")
    private String sunday_to;
    
    /** The doctor_interval. */
    @Column(name="doctor_interval")
    private Integer doctor_interval;
    
    /** The doctor_address. */
    @Column(name="doctor_address")
    private String doctor_address;
    
    /** The doctor_contact_number. */
    @Column(name="doctor_contact_number")
    private Long doctor_contact_number;
    
    /** The doctor_designation. */
    @Column(name="doctor_designation")
    private String doctor_designation;
    
    /** The doctor_email. */
    @Column(name="doctor_email")
    private String doctor_email;
    
    /** The doctor city. */
    @Column(name="doctor_city")
     private String doctorCity;
    
    /** The doctor district. */
    @Column(name="doctor_district")
     private String doctorDistrict;
    
    /** The doctor state. */
    @Column(name="doctor_state")
     private String doctorState;
    
    /** The doctor country. */
    @Column(name="doctor_country")
     private String doctorCountry;
    
    /** The doctor pincode. */
    @Column(name="doctor_pincode")
     private Long doctorPincode;
    
    /** The created date. */
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    @Column(name="created_date")
     private Date createdDate;
    
    /** The updated date. */
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    @Column(name="updated_date")
     private Date updatedDate;
    
    /** The accounts. */
    @OneToMany(mappedBy="physicianId")
    private Set<TAccount> accounts;
   
    /** The record version. */
    @Version
    @Column(name = "record_version")
    private Long recordVersion;
    
    /** The patient encounter. */
    @OneToMany(mappedBy="doctor")
    private Set<TPatientEncounter> patientEncounter;
    
    @OneToMany(mappedBy="doctorNameId")
    private Set<TAppointment> doctorAppointment;
    
    @OneToMany(mappedBy="doctorId")
    private Set<TInpatentAdmission> inPatientAdmission;
    
    /**
     * Instantiates a new t doctor information.
     */
    public TDoctorInformation() {
    }

    /**
     * Gets the id.
     *
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets the id.
     *
     * @param id the new id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets the doctor_id.
     *
     * @return the doctor_id
     */
    public Long getDoctor_id() {
        return doctor_id;
    }

    /**
     * Sets the doctor_id.
     *
     * @param doctor_id the new doctor_id
     */
    public void setDoctor_id(Long doctor_id) {
        this.doctor_id = doctor_id;
    }

    /**
     * Gets the doctor_name.
     *
     * @return the doctor_name
     */
    public String getDoctor_name() {
        return doctor_name;
    }

    /**
     * Sets the doctor_name.
     *
     * @param doctor_name the new doctor_name
     */
    public void setDoctor_name(String doctor_name) {
        this.doctor_name = doctor_name;
    }

    /**
     * Gets the doctor_department_id.
     *
     * @return the doctor_department_id
     */
    public TDepartmentMaster getDoctor_department_id() {
        return doctor_department_id;
    }

    /**
     * Sets the doctor_department_id.
     *
     * @param doctor_department_id the new doctor_department_id
     */
    public void setDoctor_department_id(TDepartmentMaster doctor_department_id) {
        this.doctor_department_id = doctor_department_id;
    }

    /**
     * Gets the monday_from.
     *
     * @return the monday_from
     */
    public String getMonday_from() {
        return monday_from;
    }

    /**
     * Sets the monday_from.
     *
     * @param monday_from the new monday_from
     */
    public void setMonday_from(String monday_from) {
        this.monday_from = monday_from;
    }

    /**
     * Gets the tuesday_from.
     *
     * @return the tuesday_from
     */
    public String getTuesday_from() {
        return tuesday_from;
    }

    /**
     * Sets the tuesday_from.
     *
     * @param tuesday_from the new tuesday_from
     */
    public void setTuesday_from(String tuesday_from) {
        this.tuesday_from = tuesday_from;
    }

    /**
     * Gets the wednesday_from.
     *
     * @return the wednesday_from
     */
    public String getWednesday_from() {
        return wednesday_from;
    }

    /**
     * Sets the wednesday_from.
     *
     * @param wednesday_from the new wednesday_from
     */
    public void setWednesday_from(String wednesday_from) {
        this.wednesday_from = wednesday_from;
    }

    /**
     * Gets the thursday_from.
     *
     * @return the thursday_from
     */
    public String getThursday_from() {
        return thursday_from;
    }

    /**
     * Sets the thursday_from.
     *
     * @param thursday_from the new thursday_from
     */
    public void setThursday_from(String thursday_from) {
        this.thursday_from = thursday_from;
    }

    /**
     * Gets the friday_from.
     *
     * @return the friday_from
     */
    public String getFriday_from() {
        return friday_from;
    }

    /**
     * Sets the friday_from.
     *
     * @param friday_from the new friday_from
     */
    public void setFriday_from(String friday_from) {
        this.friday_from = friday_from;
    }

    /**
     * Gets the saturday_from.
     *
     * @return the saturday_from
     */
    public String getSaturday_from() {
        return saturday_from;
    }

    /**
     * Sets the saturday_from.
     *
     * @param saturday_from the new saturday_from
     */
    public void setSaturday_from(String saturday_from) {
        this.saturday_from = saturday_from;
    }

    /**
     * Gets the sunday_from.
     *
     * @return the sunday_from
     */
    public String getSunday_from() {
        return sunday_from;
    }

    /**
     * Sets the sunday_from.
     *
     * @param sunday_from the new sunday_from
     */
    public void setSunday_from(String sunday_from) {
        this.sunday_from = sunday_from;
    }

    /**
     * Gets the monday_to.
     *
     * @return the monday_to
     */
    public String getMonday_to() {
        return monday_to;
    }

    /**
     * Sets the monday_to.
     *
     * @param monday_to the new monday_to
     */
    public void setMonday_to(String monday_to) {
        this.monday_to = monday_to;
    }

    /**
     * Gets the tuesday_to.
     *
     * @return the tuesday_to
     */
    public String getTuesday_to() {
        return tuesday_to;
    }

    /**
     * Sets the tuesday_to.
     *
     * @param tuesday_to the new tuesday_to
     */
    public void setTuesday_to(String tuesday_to) {
        this.tuesday_to = tuesday_to;
    }

    /**
     * Gets the wednesday_to.
     *
     * @return the wednesday_to
     */
    public String getWednesday_to() {
        return wednesday_to;
    }

    /**
     * Sets the wednesday_to.
     *
     * @param wednesday_to the new wednesday_to
     */
    public void setWednesday_to(String wednesday_to) {
        this.wednesday_to = wednesday_to;
    }

    /**
     * Gets the thursday_to.
     *
     * @return the thursday_to
     */
    public String getThursday_to() {
        return thursday_to;
    }

    /**
     * Sets the thursday_to.
     *
     * @param thursday_to the new thursday_to
     */
    public void setThursday_to(String thursday_to) {
        this.thursday_to = thursday_to;
    }

    /**
     * Gets the friday_to.
     *
     * @return the friday_to
     */
    public String getFriday_to() {
        return friday_to;
    }

    /**
     * Sets the friday_to.
     *
     * @param friday_to the new friday_to
     */
    public void setFriday_to(String friday_to) {
        this.friday_to = friday_to;
    }

    /**
     * Gets the saturday_to.
     *
     * @return the saturday_to
     */
    public String getSaturday_to() {
        return saturday_to;
    }

    /**
     * Sets the saturday_to.
     *
     * @param saturday_to the new saturday_to
     */
    public void setSaturday_to(String saturday_to) {
        this.saturday_to = saturday_to;
    }

    /**
     * Gets the sunday_to.
     *
     * @return the sunday_to
     */
    public String getSunday_to() {
        return sunday_to;
    }

    /**
     * Sets the sunday_to.
     *
     * @param sunday_to the new sunday_to
     */
    public void setSunday_to(String sunday_to) {
        this.sunday_to = sunday_to;
    }

    /**
     * Gets the doctor_interval.
     *
     * @return the doctor_interval
     */
    public Integer getDoctor_interval() {
        return doctor_interval;
    }

    /**
     * Sets the doctor_interval.
     *
     * @param doctor_interval the new doctor_interval
     */
    public void setDoctor_interval(Integer doctor_interval) {
        this.doctor_interval = doctor_interval;
    }

    /**
     * Gets the doctor_address.
     *
     * @return the doctor_address
     */
    public String getDoctor_address() {
        return doctor_address;
    }

    /**
     * Sets the doctor_address.
     *
     * @param doctor_address the new doctor_address
     */
    public void setDoctor_address(String doctor_address) {
        this.doctor_address = doctor_address;
    }

    /**
     * Gets the doctor_contact_number.
     *
     * @return the doctor_contact_number
     */
    public Long getDoctor_contact_number() {
        return doctor_contact_number;
    }

    /**
     * Sets the doctor_contact_number.
     *
     * @param doctor_contact_number the new doctor_contact_number
     */
    public void setDoctor_contact_number(Long doctor_contact_number) {
        this.doctor_contact_number = doctor_contact_number;
    }

    /**
     * Gets the doctor_designation.
     *
     * @return the doctor_designation
     */
    public String getDoctor_designation() {
        return doctor_designation;
    }

    /**
     * Sets the doctor_designation.
     *
     * @param doctor_designation the new doctor_designation
     */
    public void setDoctor_designation(String doctor_designation) {
        this.doctor_designation = doctor_designation;
    }

    /**
     * Gets the doctor_email.
     *
     * @return the doctor_email
     */
    public String getDoctor_email() {
        return doctor_email;
    }

    /**
     * Sets the doctor_email.
     *
     * @param doctor_email the new doctor_email
     */
    public void setDoctor_email(String doctor_email) {
        this.doctor_email = doctor_email;
    }

    /**
     * Gets the doctor city.
     *
     * @return the doctor city
     */
    public String getDoctorCity() {
        return doctorCity;
    }

    /**
     * Sets the doctor city.
     *
     * @param doctorCity the new doctor city
     */
    public void setDoctorCity(String doctorCity) {
        this.doctorCity = doctorCity;
    }

    /**
     * Gets the doctor district.
     *
     * @return the doctor district
     */
    public String getDoctorDistrict() {
        return doctorDistrict;
    }

    /**
     * Sets the doctor district.
     *
     * @param doctorDistrict the new doctor district
     */
    public void setDoctorDistrict(String doctorDistrict) {
        this.doctorDistrict = doctorDistrict;
    }

    /**
     * Gets the doctor state.
     *
     * @return the doctor state
     */
    public String getDoctorState() {
        return doctorState;
    }

    /**
     * Sets the doctor state.
     *
     * @param doctorState the new doctor state
     */
    public void setDoctorState(String doctorState) {
        this.doctorState = doctorState;
    }

    /**
     * Gets the doctor country.
     *
     * @return the doctor country
     */
    public String getDoctorCountry() {
        return doctorCountry;
    }

    /**
     * Sets the doctor country.
     *
     * @param doctorCountry the new doctor country
     */
    public void setDoctorCountry(String doctorCountry) {
        this.doctorCountry = doctorCountry;
    }

    /**
     * Gets the doctor pincode.
     *
     * @return the doctor pincode
     */
    public Long getDoctorPincode() {
        return doctorPincode;
    }

    /**
     * Sets the doctor pincode.
     *
     * @param doctorPincode the new doctor pincode
     */
    public void setDoctorPincode(Long doctorPincode) {
        this.doctorPincode = doctorPincode;
    }

    /**
     * Gets the created date.
     *
     * @return the created date
     */
    public Date getCreatedDate() {
        return createdDate;
    }

    /**
     * Sets the created date.
     *
     * @param createdDate the new created date
     */
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    /**
     * Gets the updated date.
     *
     * @return the updated date
     */
    public Date getUpdatedDate() {
        return updatedDate;
    }

    /**
     * Sets the updated date.
     *
     * @param updatedDate the new updated date
     */
    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }
    
    /**
     * Gets the record version.
     *
     * @return the record version
     */
    public Long getRecordVersion() {
        return recordVersion;
    }

    /**
     * Sets the record version.
     *
     * @param recordVersion the new record version
     */
    public void setRecordVersion(Long recordVersion) {
        this.recordVersion = recordVersion;
    }
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString(){
        return doctor_name;
    }

    /**
     * Gets the accounts.
     *
     * @return the accounts
     */
    public Set<TAccount> getAccounts() {
        return accounts;
    }

    /**
     * Sets the accounts.
     *
     * @param accounts the new accounts
     */
    public void setAccounts(Set<TAccount> accounts) {
        this.accounts = accounts;
    }

    /**
     * Gets the patient encounter.
     *
     * @return the patient encounter
     */
    public Set<TPatientEncounter> getPatientEncounter() {
        return patientEncounter;
    }

    /**
     * Sets the patient encounter.
     *
     * @param patientEncounter the new patient encounter
     */
    public void setPatientEncounter(Set<TPatientEncounter> patientEncounter) {
        this.patientEncounter = patientEncounter;
    }

    public Set<TAppointment> getDoctorAppointment() {
        return doctorAppointment;
    }

    public void setDoctorAppointment(Set<TAppointment> doctorAppointment) {
        this.doctorAppointment = doctorAppointment;
    }

    public Set<TInpatentAdmission> getInPatientEncounter() {
        return inPatientAdmission;
    }

    public void setInPatientEncounter(Set<TInpatentAdmission> inPatientAdmission) {
        this.inPatientAdmission = inPatientAdmission;
    }
     
}

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

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