KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > organization > impl > MembershipImpl


1 package org.exoplatform.services.organization.impl;
2
3 import org.exoplatform.services.organization.Membership;
4 /**
5  * @hibernate.class table="EXO_MEMBERSHIP"
6  */

7 public class MembershipImpl implements Membership {
8
9   private String JavaDoc id = null;
10   private String JavaDoc membershipType = "member";
11   private String JavaDoc userName = null ;
12   private String JavaDoc groupId = null ;
13
14   public MembershipImpl() {
15   }
16
17   /**
18    * @hibernate.id generator-class="assigned" unsaved-value="null"
19    ***/

20   public String JavaDoc getId() { return id; }
21   public void setId(String JavaDoc id) { this.id = id; }
22   
23   /**
24    * @hibernate.property
25    **/

26   public String JavaDoc getMembershipType() { return membershipType; }
27   public void setMembershipType(String JavaDoc type) { this.membershipType = type; }
28   
29   /**
30    * @hibernate.property
31    **/

32   public String JavaDoc getUserName() { return userName; }
33   public void setUserName(String JavaDoc user) { this.userName = user; }
34   
35   /**
36    * @hibernate.property
37    **/

38   public String JavaDoc getGroupId() { return groupId ; }
39   public void setGroupId(String JavaDoc group) { this.groupId = group; }
40   
41
42   // toString
43
public String JavaDoc toString() {
44     return "Membership[" + id + "]";
45   }
46 }
Popular Tags