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

org.springframework.data.jpa.datatables.mapping.Column Maven / Gradle / Ivy

Go to download

Spring Data JPA extension to work with the great jQuery plug-in DataTables (http://datatables.net/)

There is a newer version: 6.0.4
Show newest version
package org.springframework.data.jpa.datatables.mapping;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Column {

  /**
   * Column's data source
   * 
   * @see http://datatables.net/reference/option/columns.data
   */
  @NotBlank
  private String data;

  /**
   * Column's name
   * 
   * @see http://datatables.net/reference/option/columns.name
   */
  private String name;

  /**
   * Flag to indicate if this column is searchable (true) or not (false).
   * 
   * @see http://datatables.net/reference/option/columns.searchable
   */
  @NotNull
  private Boolean searchable;

  /**
   * Flag to indicate if this column is orderable (true) or not (false).
   * 
   * @see http://datatables.net/reference/option/columns.orderable
   */
  @NotNull
  private Boolean orderable;

  /**
   * Search value to apply to this specific column.
   */
  @NotNull
  private Search search;

  /**
   * Set the search value to apply to this column
   *
   * @param searchValue if any, the search value to apply
   */
  public void setSearchValue(String searchValue) {
    this.search.setValue(searchValue);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy