Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/jbpm/workflow/organisation/impl/GroupImpl.java


1   package org.jbpm.workflow.organisation.impl;
2   
3   import java.util.*;
4   import org.jbpm.workflow.organisation.*;
5   
6   /**
7    * @hibernate.subclass discriminator-value="Group"
8    */
9   public class GroupImpl extends ActorImpl implements Group {
10    
11    /**
12     * @hibernate.property type="string" column="name"
13     */
14    public String getName() { return this.name; }
15    public void setName(String name) { this.name = name; }
16    
17    /**
18     * @hibernate.property type="string" column="type_"
19     */
20    public String getType() { return type; }
21    public void setType(String type) { this.type = type; }
22    
23    /**
24     * @hibernate.set lazy="true" cascade="all"
25     * @hibernate.collection-key column="group_"
26     * @hibernate.collection-one-to-many class="org.jbpm.workflow.organisation.impl.MembershipImpl"
27     */ 
28    public Collection getMemberships() { return memberships; }
29    public void setMemberships(Collection memberships) { this.memberships = memberships; }
30    
31    /**
32     * @hibernate.many-to-one class="org.jbpm.workflow.organisation.impl.GroupImpl"
33     *  cascade="all"
34     */
35    public Group getParent() { return parent; }
36    public void setParent(Group parent) { this.parent = parent; }
37    
38    /**
39     * @hibernate.set lazy="true" cascade="all"
40     * @hibernate.collection-key column="parent"
41     * @hibernate.collection-one-to-many class="org.jbpm.workflow.organisation.impl.GroupImpl"
42     */ 
43    public Collection getChildren() { return children; }
44    public void setChildren(Collection children) { this.children = children; }
45    
46    // private members
47    private String name = null;
48    private String type = null;
49    private Collection memberships = null;
50    private Group parent = null;
51    private Collection children = null;
52  }