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