FileDocCategorySizeDatePackage
Group.javaAPI DocHibernate 3.2.51142Thu May 04 11:23:44 BST 2006org.hibernate.test.manytomany.ordered

Group

public class Group extends Object implements Serializable

Fields Summary
private Long
id
private String
org
private String
name
private String
description
private List
users
Constructors Summary
public Group()


	  
	
public Group(String name, String org)

		this.org = org;
		this.name = name;
	
Methods Summary
public voidaddUser(User user)

		if ( user.getGroups().add( this ) ) {
			getUsers().add( user );
		}
	
public java.lang.StringgetDescription()

		return description;
	
public java.lang.LonggetId()

		return id;
	
public java.lang.StringgetName()

		return name;
	
public java.lang.StringgetOrg()

		return org;
	
public java.util.ListgetUsers()

		return users;
	
public voidsetDescription(java.lang.String description)

		this.description = description;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetName(java.lang.String name)

		this.name = name;
	
public voidsetOrg(java.lang.String org)

		this.org = org;
	
public voidsetUsers(java.util.List users)

		this.users = users;