SelectCommand scmdScenarioVersion = DAOFactory.getSelectCommand(clazz);
Filter filter = DAOFactory.getFilter("scenarioVersionId",
SQLOperator.EQUAL, ScenarioVersionId.toString());
scmdScenarioVersion.setFilter(filter);
Session session = SessionFactory.openSession();
ArrayList scenarioVersions = session.query(scmdScenarioVersion);
if (scenarioVersions.size() == 1) {
scenarioversion = (ScenarioVersion) scenarioVersions.get(0);
}
// 查询上一版本的scenarioversion
if (oldScenarioVersionId.intValue() > -1) {