Package com.example.helloworld.db.model

Examples of com.example.helloworld.db.model.Fortune


    @UnitOfWork
    public FortuneView dbTest() {
        final List<Fortune> fortunes = Lists.newArrayListWithExpectedSize(32);

        fortunes.addAll(fortuneDAO.list());
        fortunes.add(new Fortune("Additional fortune added at request time."));

        Collections.sort(fortunes);
        return new FortuneView(fortunes);
    }
View Full Code Here

TOP

Related Classes of com.example.helloworld.db.model.Fortune

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.