Examples of JPAVirtualUser


Examples of org.apache.james.vut.jpa.model.JPAVirtualUser

    private boolean addRawMapping(String user, String domain, String mapping) {
        EntityManager entityManager = entityManagerFactory.createEntityManager();
        final EntityTransaction transaction = entityManager.getTransaction();
        try {
            transaction.begin();
            JPAVirtualUser jpaVirtualUser = new JPAVirtualUser(user, domain, mapping);
            entityManager.persist(jpaVirtualUser);
            transaction.commit();
            return true;
        } catch (PersistenceException e) {
            getLogger().debug("Failed to save virtual user", e);
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.