This project has retired. For details please refer to its
Attic page.
TmodelIdentifier xref
1 package org.apache.juddi.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.FetchType;
21 import javax.persistence.GeneratedValue;
22 import javax.persistence.GenerationType;
23 import javax.persistence.Id;
24 import javax.persistence.JoinColumn;
25 import javax.persistence.ManyToOne;
26 import javax.persistence.Table;
27
28
29
30
31
32 @Entity
33 @Table(name = "j3_tmodel_identifier")
34 public class TmodelIdentifier implements java.io.Serializable {
35
36 private static final long serialVersionUID = 1601849737660400357L;
37 private Long id;
38 private Tmodel tmodel;
39 private String tmodelKeyRef;
40 private String keyName;
41 private String keyValue;
42
43 public TmodelIdentifier() {
44 }
45
46 public TmodelIdentifier(Tmodel tmodel,
47 String keyValue) {
48 this.tmodel = tmodel;
49 this.keyValue = keyValue;
50 }
51
52 public TmodelIdentifier(Tmodel tmodel,
53 String tmodelKeyRef, String keyName, String keyValue) {
54 this.tmodel = tmodel;
55 this.tmodelKeyRef = tmodelKeyRef;
56 this.keyName = keyName;
57 this.keyValue = keyValue;
58 }
59
60 @Id
61 @GeneratedValue(strategy=GenerationType.AUTO)
62 public Long getId() {
63 return this.id;
64 }
65 public void setId(Long id) {
66 this.id = id;
67 }
68
69 @ManyToOne(fetch = FetchType.LAZY)
70 @JoinColumn(name = "entity_key", nullable = false)
71 public Tmodel getTmodel() {
72 return this.tmodel;
73 }
74 public void setTmodel(Tmodel tmodel) {
75 this.tmodel = tmodel;
76 }
77
78 @Column(name = "tmodel_key_ref", length = 255)
79 public String getTmodelKeyRef() {
80 return this.tmodelKeyRef;
81 }
82 public void setTmodelKeyRef(String tmodelKeyRef) {
83 this.tmodelKeyRef = tmodelKeyRef;
84 }
85
86 @Column(name = "key_name", length = 255)
87 public String getKeyName() {
88 return this.keyName;
89 }
90 public void setKeyName(String keyName) {
91 this.keyName = keyName;
92 }
93
94 @Column(name = "key_value", nullable = false, length = 255)
95 public String getKeyValue() {
96 return this.keyValue;
97 }
98 public void setKeyValue(String keyValue) {
99 this.keyValue = keyValue;
100 }
101
102 }