This project has retired. For details please refer to its
Attic page.
TmodelInstanceInfoDescr 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_instance_info_descr")
34 public class TmodelInstanceInfoDescr implements java.io.Serializable {
35
36 private static final long serialVersionUID = 8324568286938976002L;
37 private Long id;
38 private TmodelInstanceInfo tmodelInstanceInfo;
39 private String langCode;
40 private String descr;
41
42 public TmodelInstanceInfoDescr() {
43 }
44
45 public TmodelInstanceInfoDescr(TmodelInstanceInfo tmodelInstanceInfo, String descr) {
46 this.tmodelInstanceInfo = tmodelInstanceInfo;
47 this.descr = descr;
48 }
49 public TmodelInstanceInfoDescr(TmodelInstanceInfo tmodelInstanceInfo, String langCode, String descr) {
50 this.tmodelInstanceInfo = tmodelInstanceInfo;
51 this.langCode = langCode;
52 this.descr = descr;
53 }
54
55 @Id
56 @GeneratedValue(strategy=GenerationType.AUTO)
57 public Long getId() {
58 return this.id;
59 }
60 public void setId(Long id) {
61 this.id = id;
62 }
63
64 @ManyToOne(fetch = FetchType.LAZY)
65 @JoinColumn(name = "tmodel_instance_info_id", nullable = false)
66 public TmodelInstanceInfo getTmodelInstanceInfo() {
67 return this.tmodelInstanceInfo;
68 }
69 public void setTmodelInstanceInfo(TmodelInstanceInfo tmodelInstanceInfo) {
70 this.tmodelInstanceInfo = tmodelInstanceInfo;
71 }
72
73 @Column(name = "lang_code", length = 26)
74 public String getLangCode() {
75 return this.langCode;
76 }
77 public void setLangCode(String langCode) {
78 this.langCode = langCode;
79 }
80
81 @Column(name = "descr", nullable = false, length = 255)
82 public String getDescr() {
83 return this.descr;
84 }
85 public void setDescr(String descr) {
86 this.descr = descr;
87 }
88
89 }