/*
 * Created on Mar 21, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.dragonsoft.tryapp.ejb.entity.interfaces;

import java.io.Serializable;

/**
 * @author Shaun
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class UserPK implements Serializable {

	private String username;

	public UserPK() {}

	public UserPK(String username) {

		this.username = username;
	}

	/**
	 * @return Returns the username.
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param username The username to set.
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	public boolean equals(Object other) {

		if (other instanceof UserPK) {
			return (username.equals(((UserPK) other).username));
		}
		return false;
	}

	public int hashCode() {

		return username.hashCode();
	}
}