This project has retired. For details please refer to its
Attic page.
SubscriptionMatch xref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.juddi.model;
18
19 import javax.persistence.Column;
20 import javax.persistence.Entity;
21 import javax.persistence.FetchType;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27 import javax.persistence.Table;
28
29
30
31
32 @Entity
33 @Table(name = "j3_subscription_match")
34 public class SubscriptionMatch implements java.io.Serializable {
35
36 private static final long serialVersionUID = -7603419240922639070L;
37 private Long id;
38 private Subscription subscription;
39 private String entityKey;
40
41 public SubscriptionMatch() {
42 }
43
44 public SubscriptionMatch(Subscription subscription, String entityKey) {
45 this.subscription = subscription;
46 this.entityKey = entityKey;
47 }
48
49 @Id
50 @GeneratedValue(strategy=GenerationType.AUTO)
51 public Long getId() {
52 return id;
53 }
54 public void setId(Long id) {
55 this.id = id;
56 }
57
58 @ManyToOne(fetch = FetchType.LAZY)
59 @JoinColumn(name = "subscription_key", nullable = false)
60 public Subscription getSubscription() {
61 return subscription;
62 }
63 public void setSubscription(Subscription subscription) {
64 this.subscription = subscription;
65 }
66
67 @Column(name = "entity_key", nullable = false)
68 public String getEntityKey() {
69 return entityKey;
70 }
71 public void setEntityKey(String entityKey) {
72 this.entityKey = entityKey;
73 }
74
75
76
77 }