This project has retired. For details please refer to its
Attic page.
KeyedReference 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 @Entity
32 @Table(name = "j3_keyed_reference")
33 public class KeyedReference implements java.io.Serializable {
34
35 private static final long serialVersionUID = 6594148893695178191L;
36 private Long id;
37 private CategoryBag categoryBag;
38 private KeyedReferenceGroup keyedReferenceGroup;
39 private String tmodelKeyRef;
40 private String keyName;
41 private String keyValue;
42
43 public KeyedReference() {
44 }
45
46 public KeyedReference(CategoryBag categoryBag, String keyValue) {
47 this.categoryBag = categoryBag;
48 this.keyValue = keyValue;
49 }
50
51 public KeyedReference(KeyedReferenceGroup keyedReferenceGroup, String tmodelKeyRef,
52 String keyName, String keyValue) {
53 this.keyedReferenceGroup = keyedReferenceGroup;
54 this.tmodelKeyRef = tmodelKeyRef;
55 this.keyName = keyName;
56 this.keyValue = keyValue;
57 }
58
59 public KeyedReference(CategoryBag categoryBag, String tmodelKeyRef,
60 String keyName, String keyValue) {
61 this.categoryBag = categoryBag;
62 this.tmodelKeyRef = tmodelKeyRef;
63 this.keyName = keyName;
64 this.keyValue = keyValue;
65 }
66
67 @Id
68 @GeneratedValue(strategy=GenerationType.AUTO)
69 public Long getId() {
70 return this.id;
71 }
72 public void setId(Long id) {
73 this.id = id;
74 }
75
76 @ManyToOne(fetch = FetchType.LAZY)
77 @JoinColumn(name = "category_bag_id", nullable = true)
78 public CategoryBag getCategoryBag() {
79 return this.categoryBag;
80 }
81 public void setCategoryBag(CategoryBag categoryBag) {
82 this.categoryBag = categoryBag;
83 }
84
85 @ManyToOne(fetch = FetchType.LAZY)
86 @JoinColumn(name = "keyed_reference_group_id", nullable = true)
87 public KeyedReferenceGroup getKeyedReferenceGroup() {
88 return keyedReferenceGroup;
89 }
90 public void setKeyedReferenceGroup(KeyedReferenceGroup keyedReferenceGroup) {
91 this.keyedReferenceGroup = keyedReferenceGroup;
92 }
93
94 @Column(name = "tmodel_key_ref", length = 255)
95 public String getTmodelKeyRef() {
96 return this.tmodelKeyRef;
97 }
98 public void setTmodelKeyRef(String tmodelKeyRef) {
99 this.tmodelKeyRef = tmodelKeyRef;
100 }
101
102 @Column(name = "key_name", length = 255)
103 public String getKeyName() {
104 return this.keyName;
105 }
106 public void setKeyName(String keyName) {
107 this.keyName = keyName;
108 }
109
110 @Column(name = "key_value", nullable = false, length = 255)
111 public String getKeyValue() {
112 return this.keyValue;
113 }
114 public void setKeyValue(String keyValue) {
115 this.keyValue = keyValue;
116 }
117
118 }