Skip to content

Commit

Permalink
Added deprecated annotation to sort enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazariii committed Nov 2, 2015
1 parent 4ca67b4 commit 2d406d7
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;


/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
@Deprecated
public enum SortCriteriaCalibrationTest {
DATE() {
public Order getSortOrder(Root<CalibrationTest> root, CriteriaBuilder cb, String sortOrder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;

/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
public enum SortCriteriaCounterType {
ID(){
public Order getSortOrder(Root<CounterType> root, CriteriaBuilder cb, String sortOrder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;

/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
public enum SortCriteriaDeviceCategory {
ID() {
public Order getSortOrder(Root<Device> root, CriteriaBuilder cb, String sortOrder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;

/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
public enum SortCriteriaOrganization {
ID() {
public Order getSortOrder(Root<Organization> root, CriteriaBuilder cb, String sortOrder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;


/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
public enum SortCriteriaUser {
USERNAME() {
public Order getSortOrder(Root<User> root, CriteriaBuilder cb, String sortOrder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import javax.persistence.criteria.Order;
import javax.persistence.criteria.Root;

/**
* @deprecated this class have a lot of repeated code <br/>
* {need to be replaced and removed}<br/>
* use {@link com.softserve.edu.specification.sort.SortCriteria} interface instead<br/>
* as it used in {@link com.softserve.edu.specification.sort.AgreementSortCriteria}
*/
public enum SortCriteriaVerification {
ID() {
public Order getSortOrder(Root<Verification> root, CriteriaBuilder cb, String sortOrder) {
Expand Down

0 comments on commit 2d406d7

Please sign in to comment.