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

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

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

import com.nbsaas.boot.rest.filter.Operator;
import com.nbsaas.boot.rest.filter.Search;
import com.nbsaas.boot.rest.request.PageRequest;
import lombok.*;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
* 搜索bean
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ${formBean.className}SearchRequest   extends PageRequest implements Serializable {

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

<#if formBean.searches??>
    <#list formBean.searches as item>
        //${item.title}
        @Search(name = "${item.key}",operator = Operator.${item.operator})
        private ${item.className} ${item.id};

    


<#if formBean.catalog>
    private int fetch;

    @Search(name = "levelInfo",operator = Operator.eq)
    private Integer level;


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy