This project has retired. For details please refer to its
Attic page.
AddressLine 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_address_line")
34 public class AddressLine implements java.io.Serializable {
35
36 private static final long serialVersionUID = -306060662254773951L;
37 private Long id;
38 private Address address;
39 private String line;
40 private String keyName;
41 private String keyValue;
42
43 public AddressLine() {
44 }
45
46 public AddressLine(Address address, String line) {
47 this.address = address;
48 this.line = line;
49 }
50 public AddressLine(Address address, String line,
51 String keyName, String keyValue) {
52 this.address = address;
53 this.line = line;
54 this.keyName = keyName;
55 this.keyValue = keyValue;
56 }
57
58 @Id
59 @GeneratedValue(strategy=GenerationType.AUTO)
60 public Long getId() {
61 return this.id;
62 }
63 public void setId(Long id) {
64 this.id = id;
65 }
66
67 @ManyToOne(fetch = FetchType.LAZY)
68 @JoinColumn(name = "address_id", nullable = false)
69 public Address getAddress() {
70 return this.address;
71 }
72 public void setAddress(Address address) {
73 this.address = address;
74 }
75
76 @Column(name = "line", nullable = false, length = 80)
77 public String getLine() {
78 return this.line;
79 }
80 public void setLine(String line) {
81 this.line = line;
82 }
83
84 @Column(name = "key_name", length=255)
85 public String getKeyName() {
86 return this.keyName;
87 }
88 public void setKeyName(String keyName) {
89 this.keyName = keyName;
90 }
91
92 @Column(name = "key_value", length=255)
93 public String getKeyValue() {
94 return this.keyValue;
95 }
96 public void setKeyValue(String keyValue) {
97 this.keyValue = keyValue;
98 }
99
100 }