org.springframework.data.jpa.datatables.mapping.Order Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-data-jpa-datatables Show documentation
Show all versions of spring-data-jpa-datatables Show documentation
Spring Data JPA extension to work with the great jQuery plug-in DataTables (http://datatables.net/)
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