From 230a2e23cac34325ab5b52db20d34822c7cb5bbd Mon Sep 17 00:00:00 2001 From: hmm Date: Wed, 3 Sep 2014 14:30:05 +0800 Subject: [PATCH] list script and testplan by time desc --- .../org/bench4q/master/domain/repository/ScriptRepositoty.java | 3 ++- .../bench4q/master/domain/repository/TestPlanRepository.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/repository/ScriptRepositoty.java b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/repository/ScriptRepositoty.java index cfe1f1d6..8e4d230a 100644 --- a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/repository/ScriptRepositoty.java +++ b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/repository/ScriptRepositoty.java @@ -11,6 +11,7 @@ import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.criterion.Criterion; +import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; import org.springframework.stereotype.Component; @@ -116,7 +117,7 @@ public class ScriptRepositoty extends AbstractRepositoty { Session session = this.getSessionHelper().openSession(); @SuppressWarnings("unchecked") List