org.springframework.data.jpa.support.Column Maven / Gradle / Ivy
package org.springframework.data.jpa.support;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
public class Column {
@NotBlank
private String data;
private String name;
@NotNull
private Boolean searchable;
@NotNull
private Boolean orderable;
@NotNull
private Search search;
public void setSearchValue(String searchValue) {
this.search.setValue(searchValue);
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Boolean getSearchable() {
return searchable;
}
public void setSearchable(Boolean searchable) {
this.searchable = searchable;
}
public Boolean getOrderable() {
return orderable;
}
public void setOrderable(Boolean orderable) {
this.orderable = orderable;
}
public Search getSearch() {
return search;
}
public void setSearch(Search search) {
this.search = search;
}
public Column() {
super();
}
public Column(String data, String name, Boolean searchable, Boolean orderable, Search search) {
super();
this.data = data;
this.name = name;
this.searchable = searchable;
this.orderable = orderable;
this.search = search;
}
}