//$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"; }
}
|