FileDocCategorySizeDatePackage
YesNoType.javaAPI DocHibernate 3.2.5419Thu Jun 03 11:31:32 BST 2004org.hibernate.type

YesNoType.java

//$Id: YesNoType.java 3890 2004-06-03 16:31:32Z steveebersole $
package org.hibernate.type;

/**
 * <tt>yes_no</tt>: A type that maps an SQL CHAR(1) to a Java Boolean.
 * @author Gavin King
 */
public class YesNoType extends CharBooleanType {

	protected final String getTrueString() {
		return "Y";
	}
	protected final String getFalseString() {
		return "N";
	}
	public String getName() { return "yes_no"; }

}