1
package com.npd.trackingwo.entity;
3
import java.io.Serializable;
4
import javax.persistence.*;
8
* The persistent class for the incidentform database table.
12
@Table(name="incidentform")
13
public class Incidentform implements Serializable {
14
private static final long serialVersionUID = 1L;
17
@Column(unique=true, nullable=false)
20
//uni-directional one-to-one association to Form
22
@JoinColumn(name="idForm", nullable=false, insertable=false, updatable=false)
25
//uni-directional many-to-one association to Operationtype
27
@JoinColumn(name="IdOperationType", nullable=false)
28
private Operationtype operationtype;
30
public Incidentform() {
34
public Incidentform(Form form, Operationtype operationtype) {
37
this.operationtype = operationtype;
38
this.idForm=form.getIdForm();
42
public long getIdForm() {
47
public Form getForm() {
51
public void setForm(Form form) {
55
public Operationtype getOperationtype() {
56
return this.operationtype;
59
public void setOperationtype(Operationtype operationtype) {
60
this.operationtype = operationtype;
b'\\ No newline at end of file'