// @Test
  public void get() {
    //		ProDefinition proDefinition=proDefinitionDao.get(2l);
    //		ProType proType=proDefinition.getProType();
    //		System.out.println("proType:" + proType.getTypeName());

    // Gson gson=new Gson();
    // JSONSerializer serializer=JsonUtil.getJSONSerializer("createtime");

    //		JSONSerializer serializer=new JSONSerializer().exclude("proType.typeName");
    //
    //		System.out.println("josn:" + serializer.prettyPrint(proDefinition));

    // serializer.transform(new DateTransformer("yyyy-MM-dd HH:mm:ss"), "createtime");

    List<ProDefinition> list = proDefinitionDao.getAll();

    // System.out.println("list:" + serializer.deepSerialize(list));

    //		Type type=new TypeToken<List<ProDefinition>>(){}.getType();
    //		StringBuffer buff = new StringBuffer();
    //
    //		Gson gson=new GsonBuilder().setPrettyPrinting().create();
    //		buff.append(gson.toJson(list, type));
    //
    //		System.out.println("josn:" + buff.toString());
  }
  @Test
  @Rollback(false)
  public void add() {

    ProDefinition pro = new ProDefinition();

    pro.setDefXml("xml");
    pro.setDescription("descriptin");
    pro.setName("vtest");
    pro.setDrawDefXml("drawXml");
    pro.setCreatetime(new Date());

    //	    ProType proType=proTypeDao.get(new Long(1));
    //
    //		pro.setProType(proType);
    //		pro.setDeployId("1");
    proDefinitionDao.save(pro);

    //		ProDefinition proDefinition=new ProDefinition();
    //		proDefinitionDao.save(proDefinition);
  }