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