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

template.hibernate.Simple.ftl Maven / Gradle / Ivy

There is a newer version: 1.1.10-2024
Show newest version
package ${simplePackage};

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import lombok.Data;
<#if formBean.requests??>
    <#list formBean.requests as item>
        <#if item.fieldType?? && item.fieldType gt 2 >
            import ${item.fullType};
        
    

<#if formBean.catalog>
    import java.util.List;


/**
* 列表对象
*/
@Data
public class ${formBean.className}Simple implements Serializable {

/**
* 序列化参数
*/
private static final long serialVersionUID = 1L;

<#if formBean.catalog>
private String value;
private String label;
private List
<${formBean.className}Simple> children;
    

    <#if formBean.simples??>
        <#list formBean.simples as item>
            <#if item.type=="Date">
                //@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
            
            private ${item.type} ${item.id};
        
    

    <#if formBean.enumList??>
        <#list formBean.enumList as item>
            private String ${item.className}Name;
        
    

    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy