Package com.evasion.plugin.person

Examples of com.evasion.plugin.person.PersonEJB


    /**
     * {@inheritDoc }
     */
    public Account createAccount(Account account) throws PersistenceViolationException {
        (new PersonEJB(em)).createPerson(account.getPerson());
        userEJB.createUser(account.getUser());
        account.getUser().setEmail(account.getPerson().getEmail());
        LOGGER.debug("Create an account for user: {}", account.getUser().getUsername());
        try {
            em.persist(account);
View Full Code Here


        this.em = em;
    }

    public Account createAccount(Account account) throws PersistenceViolationException {
        (new UserAuthService(em)).createUser(account.getUser());
        (new PersonEJB(em)).createPerson(account.getPerson());
        try {
            em.persist(account);
            em.flush();
        } catch (Exception e) {
            throw new PersistenceViolationException("Erreur dans la validation du compte utilisateur", e.fillInStackTrace());
View Full Code Here

    @PersistenceContext(unitName = "EvasionPU")
    private EntityManager em;

    @Override
    public Person createPerson(Person p) {
        return (new PersonEJB(em)).createPerson(p);
    }
View Full Code Here

    /**
     * {@inheritDoc }
     */
    public Account createAccount(Account account) throws PersistenceViolationException {
        (new PersonEJB(em)).createPerson(account.getPerson());
        (new UserAuthService(em)).createUser(account.getUser());
        account.getUser().setEmail(account.getPerson().getEmail());
        LOGGER.debug("Create an account for user: {}", account.getUser().getUsername());
        try {
            em.persist(account);
View Full Code Here

TOP

Related Classes of com.evasion.plugin.person.PersonEJB

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.