Examples of PersonEJB


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

Examples of com.evasion.plugin.person.PersonEJB

        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

Examples of com.evasion.plugin.person.PersonEJB

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

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

Examples of com.evasion.plugin.person.PersonEJB

    /**
     * {@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
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.