FileDocCategorySizeDatePackage
Group.javaAPI DocHibernate 3.2.5794Thu Nov 11 13:57:28 GMT 2004org.hibernate.test.exception

Group

public class Group extends Object
Implementation of Group.
author
Steve Ebersole

Fields Summary
private Long
id
private String
name
private Set
members
Constructors Summary
Methods Summary
public voidaddMember(User member)

		if (member == null) {
			throw new IllegalArgumentException("Member to add cannot be null");
		}

		this.members.add(member);
		member.getMemberships().add(this);
	
public java.lang.LonggetId()

		return id;
	
public java.util.SetgetMembers()

		return members;
	
public java.lang.StringgetName()

		return name;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetMembers(java.util.Set members)

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

		this.name = name;