Package com.sandrini.sandelivery.model

Examples of com.sandrini.sandelivery.model.Contact


    public List<Contact> getAllContacts() {
        return getSession().createQuery("from Contact order by name").list();
    }

    public void deleteContact(Long contactId) {
        Contact contact = getContact(contactId);
        if (contact != null) {
            getSession().delete(contact);
        }
    }
View Full Code Here


            return null;
        }
    }

    public void createContact(String name, String contact, String image) {
        Contact innerContact = new Contact();
        innerContact.setName(name);
        innerContact.setContact(contact);
        innerContact.setImage(image);
        contactDAO.createContact(innerContact);
    }
View Full Code Here

TOP

Related Classes of com.sandrini.sandelivery.model.Contact

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.