Package com.inspiresoftware.lib.dto.geda.examples.blog.domain

Examples of com.inspiresoftware.lib.dto.geda.examples.blog.domain.UserEntry


                .assembleDto(dto, user, converters, bf);
        return dto;
    }

    public UserEntryDTO findEntry(final Long entryId) {
        final UserEntry entry = dao.findEntry(entryId);
        final UserEntryDTO dto = (UserEntryDTO) bf.get("UserEntryDTO");
        DTOAssembler.newAssembler(dto.getClass(), bf.getClazz("UserEntry"))
                .assembleDto(dto, entry, converters, bf);
        return dto;
    }
View Full Code Here


     */
    public void setupUsers() {

        final User bob = dao.create("Bob");

        final UserEntry entry = bob.createEntry();
        entry.setTitle("GeDA");
        entry.setBody("Hey all, This GeDA stuff really works!!!");

        final User john = dao.create("John");
        final UserEntryReply reply = entry.createReply(john);
        reply.getReplyEntry().setBody("Awesome!");

    }
View Full Code Here

    public void setEntries(final Collection<UserEntry> entries) {
        this.entries = entries;
    }

    public UserEntry createEntry() {
        final UserEntry entry = new UserEntryImpl(this);
        entries.add(entry);
        return entry;
    }
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.examples.blog.domain.UserEntry

Copyright © 2018 www.massapicom. 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.