FileDocCategorySizeDatePackage
Sortable.javaAPI DocHibernate 3.2.5473Sun Sep 26 00:18:28 BST 2004org.hibernate.test.legacy

Sortable.java

package org.hibernate.test.legacy;

public class Sortable implements Comparable {
	
	private int id;
	private String name;
	
	private Sortable() {}
	Sortable(String name) {
		this.name = name;
	}
	
	public int compareTo(Object o) {
		return name.compareTo( ( (Sortable) o).name );
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setId(int i) {
		id = i;
	}

	public void setName(String string) {
		name = string;
	}

}