All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pojo.PojoToString.ftl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
<#if pojo.needsToString()>    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
<#foreach property in pojo.getToStringPropertiesIterator()>      buffer.append("${property.getName()}").append("='").append(${pojo.getGetterSignature(property)}()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy