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

User

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

Fields Summary
private Long
id
private String
username
private Set
memberships
Constructors Summary
Methods Summary
public voidaddMembership(Group membership)

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

		this.memberships.add(membership);
		membership.getMembers().add(this);
	
public java.lang.LonggetId()


	   
		return id;
	
public java.util.SetgetMemberships()

		return memberships;
	
public java.lang.StringgetUsername()

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

		this.id = id;
	
public voidsetMemberships(java.util.Set memberships)

		this.memberships = memberships;
	
public voidsetUsername(java.lang.String username)

		this.username = username;