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

org.springframework.data.jpa.datatables.mapping.Order 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.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

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

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {

  /**
   * Column to which ordering should be applied. This is an index reference to the columns array of
   * information that is also submitted to the server.
   */
  @NotNull
  @Min(0)
  private Integer column;

  /**
   * Ordering direction for this column. It will be asc or desc to indicate ascending ordering or
   * descending ordering, respectively.
   */
  @NotNull
  @Pattern(regexp = "(desc|asc)")
  private String dir;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy