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

appfusepojo.PojoToString.ftl Maven / Gradle / Ivy

Go to download

This plugin is used with Maven to generate source or resource artifacts for extending the functionality of your AppFuse application.

There is a newer version: 2.0-m4
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