public static KBArticleSoap toSoapModel(KBArticle model) { KBArticleSoap soapModel = new KBArticleSoap(); soapModel.setUuid(model.getUuid()); soapModel.setKbArticleId(model.getKbArticleId()); soapModel.setResourcePrimKey(model.getResourcePrimKey()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setUserName(model.getUserName()); soapModel.setCreateDate(model.getCreateDate()); soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setRootResourcePrimKey(model.getRootResourcePrimKey()); soapModel.setParentResourceClassNameId(model.getParentResourceClassNameId()); soapModel.setParentResourcePrimKey(model.getParentResourcePrimKey()); soapModel.setKbFolderId(model.getKbFolderId()); soapModel.setVersion(model.getVersion()); soapModel.setTitle(model.getTitle()); soapModel.setUrlTitle(model.getUrlTitle()); soapModel.setContent(model.getContent()); soapModel.setDescription(model.getDescription()); soapModel.setPriority(model.getPriority()); soapModel.setSections(model.getSections()); soapModel.setViewCount(model.getViewCount()); soapModel.setLatest(model.getLatest()); soapModel.setMain(model.getMain()); soapModel.setSourceURL(model.getSourceURL()); soapModel.setLastPublishDate(model.getLastPublishDate()); soapModel.setStatus(model.getStatus()); soapModel.setStatusByUserId(model.getStatusByUserId()); soapModel.setStatusByUserName(model.getStatusByUserName()); soapModel.setStatusDate(model.getStatusDate()); return soapModel; }
public void setPrimaryKey(long pk) { setKbArticleId(pk); }