This project has retired. For details please refer to its
Attic page.
ServiceName 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_service_name")
34 public class ServiceName implements java.io.Serializable {
35
36 private static final long serialVersionUID = -6614950526963809113L;
37 private Long id;
38 private BusinessService businessService;
39 private String langCode;
40 private String name;
41
42 public ServiceName() {
43 }
44
45 public ServiceName(BusinessService businessService, String name) {
46 this.businessService = businessService;
47 this.name = name;
48 }
49 public ServiceName(BusinessService businessService,
50 String langCode, String name) {
51 this.businessService = businessService;
52 this.langCode = langCode;
53 this.name = name;
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 = "entity_key", nullable = false)
67 public BusinessService getBusinessService() {
68 return this.businessService;
69 }
70 public void setBusinessService(BusinessService businessService) {
71 this.businessService = businessService;
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 = "name", nullable = false)
83 public String getName() {
84 return this.name;
85 }
86 public void setName(String name) {
87 this.name = name;
88 }
89
90 }