Package org.internna.iwebmvc.model

Examples of org.internna.iwebmvc.model.MultiDocument.removeAll()


        md.addDocument(new Document());
        md.addDocument(new Document());
        assertNull(multiDocumentParser.parse(md));
        SimpleEntity entity = baseDao.first(SimpleEntity.class);
        md = baseDao.first(MultiDocument.class);
        md.removeAll();
        MultiDocument parsed = multiDocumentParser.parse(md);
        assertNull(parsed);
        entity.setPhotos(parsed);
        baseDao.update(entity);
        assertNull(baseDao.first(MultiDocument.class));
View Full Code Here


        if (up != null) {
            purge(up);
            if (CollectionUtils.isEmpty(up.getDocuments())) {
                if (up.getId() != null) {
                    MultiDocument old = getDao().find(MultiDocument.class, up.getId());
                    old.removeAll();
                    getDao().remove(old);
                }
                return null;
            } else {
                UUID id = up.getId();
View Full Code Here

                return null;
            } else {
                UUID id = up.getId();
                if (id != null) {
                    MultiDocument old = getDao().find(MultiDocument.class, id);
                    old.removeAll();
                    for (Document doc : up.getDocuments()) {
                        Document parsed = documentParser.parse(doc);
                        parsed.setDocumentGroup(old);
                        old.addDocument(parsed);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.