public DocumentVo getDocument(DocumentVo voDocFilter) { DomainFactory factory = getDomainFactory(); Document domDoc = (Document) factory.getDomainObject(Document.class, voDocFilter.getID_Document()); return DocumentVoAssembler.create(domDoc); }
public void saveDocument(DocumentVo document) throws DomainInterfaceException, StaleObjectException, ForeignKeyViolationException, UniqueKeyViolationException { DomainFactory factory = getDomainFactory(); Document domDoc = DocumentVoAssembler.extractDocument(factory, document); factory.save(domDoc); }