~livrezmoi/livrezmoi/trackingwofull

« back to all changes in this revision

Viewing changes to TrackingWOProjectEJB/ejbModule/com/npd/trackingwo/entity/Incidentform.java

  • Committer: Rachid Ouattara
  • Date: 2009-08-15 18:49:34 UTC
  • Revision ID: ouattara@rouattara-20090815184934-64ohiypk5cvf831a
create new branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.npd.trackingwo.entity;
 
2
 
 
3
import java.io.Serializable;
 
4
import javax.persistence.*;
 
5
 
 
6
 
 
7
/**
 
8
 * The persistent class for the incidentform database table.
 
9
 * 
 
10
 */
 
11
@Entity
 
12
@Table(name="incidentform")
 
13
public class Incidentform implements Serializable {
 
14
        private static final long serialVersionUID = 1L;
 
15
 
 
16
        @Id
 
17
        @Column(unique=true, nullable=false)
 
18
        private long idForm;
 
19
 
 
20
        //uni-directional one-to-one association to Form
 
21
        @OneToOne
 
22
        @JoinColumn(name="idForm", nullable=false, insertable=false, updatable=false)
 
23
        private Form form;
 
24
 
 
25
        //uni-directional many-to-one association to Operationtype
 
26
    @ManyToOne
 
27
        @JoinColumn(name="IdOperationType", nullable=false)
 
28
        private Operationtype operationtype;
 
29
 
 
30
    public Incidentform() {
 
31
    }
 
32
 
 
33
    
 
34
        public Incidentform(Form form, Operationtype operationtype) {
 
35
                super();
 
36
                this.form = form;
 
37
                this.operationtype = operationtype;
 
38
                this.idForm=form.getIdForm();
 
39
        }
 
40
 
 
41
 
 
42
        public long getIdForm() {
 
43
                return this.idForm;
 
44
        }
 
45
 
 
46
 
 
47
        public Form getForm() {
 
48
                return this.form;
 
49
        }
 
50
 
 
51
        public void setForm(Form form) {
 
52
                this.form = form;
 
53
        }
 
54
        
 
55
        public Operationtype getOperationtype() {
 
56
                return this.operationtype;
 
57
        }
 
58
 
 
59
        public void setOperationtype(Operationtype operationtype) {
 
60
                this.operationtype = operationtype;
 
61
        }
 
62
        
 
63
}
 
 
b'\\ No newline at end of file'