KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > pojos > PlanetGroupSubscriptionAssoc


1 /*
2  * Copyright 2005 Sun Microsystems, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.roller.pojos;
17
18 import java.io.Serializable JavaDoc;
19
20 import org.roller.pojos.PersistentObject;
21
22 /**
23  * @hibernate.class table="rag_group_subscription"
24  * @author Dave Johnson
25  */

26 public class PlanetGroupSubscriptionAssoc extends PersistentObject
27         implements Serializable JavaDoc
28 {
29     /** Database ID */
30     protected String JavaDoc id;
31     
32     protected PlanetGroupData group;
33     protected PlanetSubscriptionData subscription;
34
35     //----------------------------------------------------------- persistent fields
36
/**
37      * @hibernate.id column="id" type="string"
38      * generator-class="uuid.hex" unsaved-value="null"
39      */

40     public String JavaDoc getId()
41     {
42         return id;
43     }
44
45     public void setId(String JavaDoc id)
46     {
47         this.id = id;
48     }
49
50     /**
51      * @hibernate.many-to-one column="group_id" cascade="none" not-null="false"
52      */

53     public PlanetGroupData getGroup()
54     {
55         return group;
56     }
57     public void setGroup(PlanetGroupData group)
58     {
59         this.group = group;
60     }
61     
62     /**
63      * @hibernate.many-to-one column="subscription_id" cascade="none" not-null="false"
64      */

65     public PlanetSubscriptionData getSubscription()
66     {
67         return subscription;
68     }
69     public void setSubscription(PlanetSubscriptionData subscription)
70     {
71         this.subscription = subscription;
72     }
73
74     //-------------------------------------------------------------- implementation
75
public void setData(PersistentObject vo)
76     {
77     }
78 }
Popular Tags