use of org.wso2.carbon.attachment.mgt.core.dao.impl.jpa.openjpa.entity.AttachmentDAOImpl in project carbon-business-process by wso2.
the class AttachmentMgtDAOTransformerFactoryImpl method convertAttachment.
@Override
public AttachmentDAO convertAttachment(Attachment attachment) throws AttachmentMgtException {
AttachmentDAO attachmentDAO = new AttachmentDAOImpl();
attachmentDAO.setName(attachment.getName());
attachmentDAO.setCreatedBy(attachment.getCreatedBy());
attachmentDAO.setContent(attachment.getContent());
attachmentDAO.setContentType(attachment.getContentType());
return attachmentDAO;
}
use of org.wso2.carbon.attachment.mgt.core.dao.impl.jpa.openjpa.entity.AttachmentDAOImpl in project carbon-business-process by wso2.
the class AttachmentMgtDAOTransformerFactoryImpl method convertAttachment.
@Override
public AttachmentDAO convertAttachment(Attachment attachment) throws AttachmentMgtException {
AttachmentDAO attachmentDAO = new AttachmentDAOImpl();
attachmentDAO.setName(attachment.getName());
attachmentDAO.setCreatedBy(attachment.getCreatedBy());
attachmentDAO.setContent(attachment.getContent());
attachmentDAO.setContentType(attachment.getContentType());
return attachmentDAO;
}
Aggregations