From db964183e2dc103794b44e80d2c5b021ca2134c2 Mon Sep 17 00:00:00 2001 From: luqiong <605601787@qq.com> Date: Tue, 2 Sep 2014 11:16:15 +0800 Subject: [PATCH] modify the gettter to transient modify the gettter to transient --- .../main/java/org/bench4q/master/domain/entity/TestPlan.java | 1 + .../java/org/bench4q/master/domain/entity/TestPlanScript.java | 1 + .../main/resources/org/bench4q/master/config/hibernate.cfg.xml | 2 +- .../org/bench4q/master/config/httpCaptureConfig/recordFlag.html | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java index 6f3cd5a7..7838c4a8 100644 --- a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java +++ b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java @@ -316,6 +316,7 @@ public class TestPlan implements IAggregate { return true; } + @Transient public Date getCurrentStartTime() { return getLastRunningTime(); } diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlanScript.java b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlanScript.java index a59bfa66..6d9cc1c0 100644 --- a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlanScript.java +++ b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlanScript.java @@ -314,6 +314,7 @@ public class TestPlanScript implements RunningScriptInterface { } @Override + @Transient public Date getStartTime() { return this.getTestPlan().getCurrentStartTime(); } diff --git a/Bench4Q-Master/src/main/resources/org/bench4q/master/config/hibernate.cfg.xml b/Bench4Q-Master/src/main/resources/org/bench4q/master/config/hibernate.cfg.xml index c570f161..247b250d 100644 --- a/Bench4Q-Master/src/main/resources/org/bench4q/master/config/hibernate.cfg.xml +++ b/Bench4Q-Master/src/main/resources/org/bench4q/master/config/hibernate.cfg.xml @@ -3,7 +3,7 @@ com.mysql.jdbc.Driver - jdbc:mysql://133.133.133.36:3306/bench4q_master + jdbc:mysql://localhost:3306/bench4q_master root 123456 diff --git a/Bench4Q-Master/src/main/resources/org/bench4q/master/config/httpCaptureConfig/recordFlag.html b/Bench4Q-Master/src/main/resources/org/bench4q/master/config/httpCaptureConfig/recordFlag.html index fda43c78..9612163e 100644 --- a/Bench4Q-Master/src/main/resources/org/bench4q/master/config/httpCaptureConfig/recordFlag.html +++ b/Bench4Q-Master/src/main/resources/org/bench4q/master/config/httpCaptureConfig/recordFlag.html @@ -1,4 +1,4 @@ -