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

org.sagacity.quickvo.parent-entity.ftl Maven / Gradle / Ivy

The newest version!
/**
 *@Generated by sagacity-quickvo 5.0
 */
package ${quickVO.entityPackage};

import org.sagacity.sqltoy.config.annotation.SqlToyEntity;
<#if (quickVO.imports?exists && quickVO.imports?size>0)>
<#list quickVO.imports as import>
import ${import};


import ${quickVO.entityPackage}.${quickVO.abstractPath}.Abstract${quickVO.entityName};

/**
<#if (quickVO.projectName?exists)> * @project ${quickVO.projectName}
<#if (quickVO.author?exists)> * @author ${quickVO.author}
<#if (quickVO.version?exists)> * @version ${quickVO.version}
 * Table: ${quickVO.tableName}<#if (quickVO.tableRemark?exists && quickVO.tableRemark!='')>,Remark:${quickVO.tableRemark} 	
 */
@SqlToyEntity
public class ${quickVO.entityName} extends Abstract${quickVO.entityName} {	
	/**
	 * 
	 */
	private static final long serialVersionUID = ${quickVO.entitySerialUID}L;
	
	/** default constructor */
	public ${quickVO.entityName}() {
		super();
	}
	
<#if (quickVO.type=="TABLE")>	
	/*---begin-constructor-area---don't-update-this-area--*/
<#if (quickVO.singlePk=='1'||quickVO.singlePk=='0')>
<#assign paramCnt="0"/> 
	/** pk constructor */
	public ${quickVO.entityName}(<#list quickVO.columns as column><#if (column.pkFlag=='1')><#if (paramCnt=='1')>,<#assign paramCnt='1'/>${column.resultType} ${column.colJavaName?uncap_first})
	{
		<#list quickVO.columns as column>
		<#if (column.pkFlag=='1')>
		this.${column.colJavaName?uncap_first}=${column.colJavaName?uncap_first};
		
		
	}

	/*---end-constructor-area---don't-update-this-area--*/


	/**
     * @todo vo columns to String
     */
    @Override
	public String toString() {
		return super.toString();
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#clone()
	 */
	@Override
	public ${quickVO.entityName} clone() {
		try {
			return (${quickVO.entityName}) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return null;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy