Package com.sandrini.sandelivery.model

Examples of com.sandrini.sandelivery.model.Resource


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

    public void deleteResource(Long resourceId) {
        Resource resource = getResource(resourceId);
        if (resource != null) {
            getSession().delete(resource);
        }
    }
View Full Code Here


            return null;
        }
    }

    public void createResource(String name, String url) {
        Resource resource = new Resource();
        resource.setName(name);
        resource.setUrl(url);
        resourceDAO.createResource(resource);
    }
View Full Code Here

TOP

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

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.