Package models

Examples of models.Mepo


    private EntityManager em;

    @PostConstruct
    public void initData(){
        List<Mepo> mepi = new ArrayList<Mepo>();
        mepi.add(new Mepo("John Smice", "This is my first Mepo, awesome isn't it ?"));
        mepi.add(new Mepo("Poca Hontas", "Where are you John ?"));
        for (Mepo mepo : mepi) {
            em.merge(mepo);
        }
        LOGGER.info("Mepi repository initialized");
    }
View Full Code Here


        return newMepo;
    }

    @PostConstruct
    public void initClass(){
        newMepo = new Mepo();
        if (userInfo.getLoggedIn()){
            newMepo.setAuthor(userInfo.getNickName());
        }
    }
View Full Code Here

TOP

Related Classes of models.Mepo

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.