@Override public Config findByPK(int keyId, Readset<Config> readset) throws DalException { Config config = new Config(); config.setId(keyId); config.setModifyDate(new Date()); config.setContent(new Company().toString()); return config; }
@Override public Config findByName(String name, Readset<Config> readset) throws DalException { Config config = new Config(); config.setName(name); Company company = new Company(); ProductLine productLine = new ProductLine("Test"); company.addProductLine(productLine); config.setContent(company.toString()); config.setModifyDate(new Date()); return config; }