Package org.apache.mailreaderjpa

Examples of org.apache.mailreaderjpa.Protocol


            // Start a transaction since we will be updating the database
            et = em.getTransaction();
            et.begin();

            // Create the basic protocol data
            Protocol protocol1 = null;
            protocol1 = new Protocol();
            protocol1.setDescription("IMAP Protocol");
            em.persist(protocol1);
            Protocol protocol2 = new Protocol();
            protocol2.setDescription("POP3 Protocol");
            em.persist(protocol2);

            // Set up the initial user and subscriptions
            User user = new User();
            user.setUsername("user");
View Full Code Here


     * @exception ConverterException if a conversion error occurs
     */
    public String getAsString(FacesContext context, UIComponent component,
            Object value) throws ConverterException {

        Protocol protocol = (Protocol) value;
        return "" + protocol.getId();

    }
View Full Code Here

TOP

Related Classes of org.apache.mailreaderjpa.Protocol

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.