org.springframework.data.jpa.support.Order Maven / Gradle / Ivy
package org.springframework.data.jpa.support;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
public class Order {
@NotNull
@Min(0)
private Integer column;
@NotNull
@Pattern(regexp = "(desc|asc)")
private String dir;
public Integer getColumn() {
return column;
}
public void setColumn(Integer column) {
this.column = column;
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir;
}
public Order() {
super();
}
public Order(Integer column, String dir) {
super();
this.column = column;
this.dir = dir;
}
}