FileDocCategorySizeDatePackage
User.javaAPI DocHibernate 3.2.5764Wed Apr 11 09:25:14 BST 2007org.hibernate.test.insertordering

User

public class User extends Object
{@inheritDoc}
author
Steve Ebersole

Fields Summary
private Long
id
private String
username
private Set
memberships
Constructors Summary
User()
for persistence


	  	 
	 
	
public User(String username)

		this.username = username;
	
Methods Summary
public MembershipaddMembership(Group group)

		Membership membership = new Membership( this, group );
		memberships.add( membership );
		return membership;
	
public java.lang.LonggetId()

		return id;
	
public java.util.IteratorgetMemberships()

		return memberships.iterator();
	
public java.lang.StringgetUsername()

		return username;