*** BasicRenderer.java.old	2002-11-02 17:48:54.000000000 +0200
--- BasicRenderer.java.new	2002-11-08 17:38:19.000000000 +0200
***************
*** 1,19 ****
  //$Id: BasicRenderer.java,v 1.12 2002/11/02 15:48:54 oneovthafew Exp $
  package cirrus.hibernate.tools.codegen;
  
- 
  import java.io.PrintWriter;
  import java.util.Iterator;
  import java.util.Map;
  
- 
  public class BasicRenderer implements Renderer {
  
      /**
  	 * Returns the true name for the given class name. By true name is 
       * that it will return the Proxy for the class name if the class was
       * defined with a proxy attribute.
! 	 * @param name class name that we use to serach in class2classmap
  	 * @param class2classmap a map from classname to classmappings
  	 * @return String return either name or the proxy name of the classmap
  	 */
--- 1,17 ----
  //$Id: BasicRenderer.java,v 1.12 2002/11/02 15:48:54 oneovthafew Exp $
  package cirrus.hibernate.tools.codegen;
  
  import java.io.PrintWriter;
  import java.util.Iterator;
  import java.util.Map;
  
  public class BasicRenderer implements Renderer {
  
      /**
  	 * Returns the true name for the given class name. By true name is 
       * that it will return the Proxy for the class name if the class was
       * defined with a proxy attribute.
! 	 * @param field class name that we use to serach in class2classmap
  	 * @param class2classmap a map from classname to classmappings
  	 * @return String return either name or the proxy name of the classmap
  	 */
***************
*** 141,148 ****
          for (Iterator fields = classMapping.getFields().iterator(); fields.hasNext();) {
              field = (Field) fields.next();
  
              // getter
!             writer.println("    public " + getTrueTypeName(field, class2classmap) + " get" + field.getAsSuffix() + "() {");
              writer.println("        return this." + field.getName() + ";");
              writer.println("    }");
              writer.println("");
--- 139,148 ----
          for (Iterator fields = classMapping.getFields().iterator(); fields.hasNext();) {
              field = (Field) fields.next();
  
+             String getterType = (field.getType().toLowerCase().equals("boolean")) ? " is" : " get";
+ 
              // getter
!             writer.println("    public " + getTrueTypeName(field, class2classmap) + getterType + field.getAsSuffix() + "() {");
              writer.println("        return this." + field.getName() + ";");
              writer.println("    }");
              writer.println("");
